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

Cutepdf Printer - Errror Loading Printer Driver 1

Status
Not open for further replies.

manpaul

Technical User
Jan 10, 2005
118
CA
I am trying to set a printer to the Cutepdf Printer, and I am geting the following error.

Error Loading Printer Driver

It works when I use the printer prompt and select the printer from the list. This is happening with all the printers that are attached to different pc's. What am I doing wrong? I want to set the printer the windows name on my pc.

I do have the CutePDF Writer printer driver install on my machine
Here is my code

Error Loading Printer Driver

SET PRINTER TO "CutePDF Writer"
SELECT statprint
GOTO TOP
REPORT FORM "d:\cobra 2004\reports\stathtml.frx" NOCONSOLE NODIALOG TO PRINTER
 
Mike I hve tried that and I still get the same error

Paul
 
I have also used getprinter()
set printer to name getprinter()

and that still fails with the same error. Do I have to load the driver myself. When I use the report form ...printer prompt command and select the printer it works just fine ? I have tried double quoting ect and that did not work. Do I have to specify the port?
I have use aprinter() and that printer is there.

I am at a real lost here as I need to switch the printers as needed, and if I use the set printer command call a printer not attached to the PC I get the same problem, unless I use the printer prompt is there a setting that I have missed.
Paul
 
Try:

SET PRINTER TO NAME (GetPrinter())

With spaces in the name, you need the parens.

Tamar
 
Found the problem

The problem was in the report as I had the set the printer environment off then it worked

Thanks to all

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top