Information générale
Catégorie:
Applications Internet
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement