Random line on excel document - vba

Every time I create an excel document I get a random line appearing when printing or when exporting to PDF.
I have attached a photo and as you can see the line appears about half way down the second page.
I have cleared all borders and even remade the document on a different workbook but the issue still persists.
Any help would be greatly appreciated as I have to send PDF files to customer and it looks incredibly unprofessional.
Many Thanks

Related

Text jumbled in reading from multiple line highlights using PDF box API

We have used the above algorithm suggested in the link to read the highlighted text from PDF files. It works fine with single line highlights.
However, text read from multiple line highlights is incorrect. Final text read from highlight is completely jumbled with neighboring lines text.
Help us in resolving the above issue. - Thanks

Google Sheet to PDF MailTo: Part 2

First-timer here trying to modify code to fit my needs without any coding training. I borrowed the following google sheet to pdf mailto script from another poster (Kelvin Chong).
I am able to successfully send an email to myself with an attached PDF, but the PDF is blank. I'm apparently missing something when it comes to the script retrieving the active spreadsheet. The Google Sheet I am trying to send as a PDF is only a single sheet and I have tried both the SpreadsheetApp.openByUrl() and SpreadsheetApp.getActiveSpreadsheet() options. Neither method gives me an error when I run the script and, like I said, it emails me a PDF...it's just blank. Oh, and yes, when running the openByUrl I did enter the URL of the spreadsheet and have checked to make sure it is open for anyone to view.
Any help would be greatly appreciated. Thanks in advance!
Nevermind...I figured it out through some trial and error. Basically, the original programmer wrote the script so that it would send a zip file. Another programmer modified the script so that it would only send an individual sheet. When I started tinkering, I noticed that the zip file would have a blank page and then the actual pdf. Once I realized this, I just tinkered a little with the code to only focus on that second sheet. All is well now!

Error When Importing PDF into Word

I need to perform multiple edits in a word document and based on search criteria then import the relevant PDF for that specific page. The file path I dynamically create as per specific data on the various pages. The code works fine if there are less that roughly 70 PDF files to import.
Once it gets to importing after around 70 PDF files then Word starts to give warning about not being able to undo the action which is about to be performed, even though i clear the Undo History after I have imported each PDF.
Then there is also an error which comes up with regards to the importing of the PDF, see image below:
But I can still open PDF document when this error occurs, if I stop my code and try to manually import the PDF it doesnt work. Only if I save the word document and then reopen it, can I import PDF documents into the word document again.
I believe it has something to do with all the actions being performed in Word.
Unfortunately I am not able to create a demo code which will give the same outputs for this question.
Why would PDF documents give an error when importing into Word?

SAGE Math - Graphs too big when printing pdf

I'm trying to print out a Sage Worksheet that I created recently. However, when trying to print out the pdf Sage generates for me, the graphs I created take up either a whole page or are too big to fit on a whole page. Is there any way I can resize these graphs to fit no more than half a page?
I've tried the command G.show(figsize=2), which works, but only after compiling on the Sage worksheet.
Any help in this matter is greatly appreciated. Thanks!
I suggest putting (perhaps in a hidden cell)
sage.plot.graphics.Graphics.SHOW_OPTIONS['figsize']=2
at the top (or bottom) of your worksheet. This should globally change these, once you have evaluated your cells again.
However, you are right that the size you create is the size you get. I suppose that is a feature in some sense...

how to Delete blank page form pdf using VB.NET?

I am generating the PDF in that, i have merged first RDLC(Report) and second cristal report Total 2 pages are in my report,but after generating PDF it is showing three page, last page is blank so how to Delete blank page Using VB.NET... please help me out....
The reason for the third page is probably an element of the report overflowing invisibly somewhere. Try making it slightly less wide for starters and see if that helps.