Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word - Losing Borders when printing from a macro

Status
Not open for further replies.

samoody

Programmer
Sep 17, 2002
10
US
I am a VFP programmer trying to debug a problem in a word macro...

I have a Word Basic (Office 2000) macro that creates PDF files from Word. The way this is done is by using an 'Adobe Distiller' print driver, which instead of printing to a printer, creates a PDF file from the document. This is done simply by printing the document using this Adobe print driver when printing.

My problem is, when this macro prints the document (creates the PDF), borders in the document are lost in the output. If I stop the macro (debug) on the print command, and then resume from that point my borders print fine.

I have tried changing the parameters on the print command, changing the view of the document in word, pausing before the print command, and upping the memory on the print driver, all without success.

Does anyone have any suggestions regarding a fix?
 
Are you using the generic print driver that comes with Adobe or do you have a specific PS driver for a printer?

Also, Distiller has a few options that may need to be configuered. Don't have distiller installed at the moment so I can't tell you what is needed.

Not sure of the process involved in the conversion, meaning which comes first distiller just taking the doc and converting it as is or Word taking control and re-formatting the document. Word loves to reformat the document depending on the printer driver it is looking at. If the document is formatted for one printer and the PS driver is either generic or for another printer, Word would tend to change it.

 
Thanks for your response.

We are using the generic Distiller driver that comes with Adobe. We have it configured the way we want and everything works properly when a file is manually 'printed', but not when the macro is run.

I have tried printing it to another driver, then changing it back to the Adobe driver and printing it again. I have tried changing the print driver, saving the document, and then re-opening the document and printing it. All of these attempts were unsuccessful. I feel like I've tried everything I could possibly try, but I can't seem to get it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top