General information
Category:
Internet applications
Terry,
>I am currently trying to take the final steps with the Amyuni product compiled into an EXE application. It generates a "error accessing printer spooler" message on the SET PRINTER TO NAME eMail. I invoke this line just before the REPORT FORM xxxxxx TO PRINT statement. Any ideas?
This is the code I am using with the DHTML driver
#DEFINE NOPROMPT 1 && do not prompt for file name
#DEFINE USEFILENAME 2 && use file name set by SetDefaultFileName else use document name
#DEFINE CONCATENATE 4 && concatenate files, do not override
#DEFINE DISABLECOMPRESSION 8 && disable page content compression
#DEFINE EMBEDFONTS 16 && embed fonts used in the input document
loHTMPrinter = CREATEOBJECT("CDIntf.CDIntf")
IF VARTYPE(loHTMPrinter)==T_OBJECT
WITH loHTMPrinter
.HTMLDriverInit("MyHTMLPrinter")
.PAPERSIZE = 1
.ORIENTATION = 2
.SetDefaultConfig
.SetDefaultPrinter
.DefaultDirectory = "d:\temp"
.DefaultFileName = "d:\temp\test.htm"
.FileNameOptions = NOPROMPT + USEFILENAME
*-* Print Here
REPORT FORM (lcReport) TO PRINTER NOCONSOLE
ENDWITH
ENDIF
Marcel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only