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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Print to Default 1

Status
Not open for further replies.

anyhandle

Programmer
Dec 1, 2000
57
US

Is there a way to prevent a sheet of paper with variables from printing every time I use the 'set print to default' command?
 
I think you'll need to provide more information - I don't see that happening. Can you provide some of the code before and after the 'set print to default' command? What printer are you using? Are you using any special configuration setup for this printer? Have you tried updating the printer driver? Do you get the same results with "ALL" printers?

Rick
 

Actually, the only code triggering a spooling (and tried this in the command window as well) is 'set printer to default'. My printer is canon 850i, but a client is complaining of the same thing so apparently it's not just with the cannons (assuming he's not using a cannon). Is there a setting in the options for this?
 
I programatically preview a report in PDF format in my application which works fine on both of my Win 2000 & Win 98 machines with both Acrobat 5 & 6 versions. For some reason, it doesn't work on some clients' machines. Could it be a print driver clash? Is there a more versitile PS driver other than Apple Color LW 12/660 PS? What is happening is it won't produce the report in Adobe on their machines.
 
anyhandle,

You really should have started a new thread for this question, as it has nothing to do with the existing thread.

Are you sure that the clients with the problem have Acrobat or some PDF reader installed?


-BP (Barbara Peisch)
 
Sorry, I should have started a new thread. For some reason I thought I did. I wouldn't be surprised they installed it incorrectly like leaving off the writer part of the software. I have a question out to them on this.
 
I wouldn't be surprised they installed it incorrectly like leaving off the writer part of the software.

Actually, that brings up something I should have clarified with you. How are you generating the PDF from within VFP? Are you sending a report to the Acrobat distiller, or are you using another third party tool like XFRX? If you're using Acrobat distiller, how are you selecting the printer? If you've hardcoded the name, it's possible your clients are using a different name.


-BP (Barbara Peisch)
 
Actually, that brings up something I should have clarified with you. How are you generating the PDF from within VFP?

1) Are you sending a report to the Acrobat distiller, or are you using another third party tool like XFRX? -- I'm sending it to the distiller by first creating a PS file with the "Apple Color LW 12/660 PS" driver.
2) If you're using Acrobat distiller, how are you selecting the printer? -- I read their registry to determine which version of Adobe they have then hard code the name accordingly (i.e. set printer to "Acrobat PDFWriter")

3) If you've hardcoded the name, it's possible your clients are using a different name. -- They can change the name of the print driver upon installation of Acrobat Adobe? All I used was Rick Strahl's past code and altered it a little. He does use a variable, but the transfer of drivers wasn't taking unless I hard coded it.
 
I had problems with using Rick Strahl's technique. He depends on the Acrobat driver, which generates the PS file first (as you've mentioned), and I found that sometimes it would copy that to the PDF file and sometimes it wouldn't. Sometimes I'd end up with 2 PDF files, one where I wanted it-that was empty, and the real one would be somewhere else. That's why I ended up switching to a tool that generates the PDF more natively. (I'm currently using XFRX for this.)


-BP (Barbara Peisch)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top