Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP report into an e-mail message or e-mail attachment?
Message
 
À
21/04/2000 16:43:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00362097
Message ID:
00362566
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform