Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about Amyuni's DLL class
Message
De
11/08/2000 09:27:05
 
 
À
11/08/2000 09:21:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00403469
Message ID:
00403877
Vues:
12
>>The reason it does not work in a same way it works on a development machine is user rights. This program installs a printer driver on the fly and that causes a conflict if Login does not have rights to install software. What you need to do is get (if you dont have already) Install.exe from Amyuni. Log on every user machine as Adm. and install a program. Also check TN03 and TN04 on their site. You should read these docs. first. Come back if you need more help.
>>Mark
>
>What he said. Except with the demo drivers you probably don't have the install or a newer version of the DLLs. Here's how to do it yourself:
>
>
DECLARE INTEGER PDFDriverInit   IN "CDIntf.DLL" STRING @szPrinter
>DECLARE INTEGER GetLastErrorMsg IN "CDIntf.DLL" STRING @cMessage, LONG @nLength
>
>cMessage = SPACE(254)
>nLength = 254
>
>IF PDFDriverInit("PDF Writer") = 0  && Change this name as needed
>  nOutput = GetLastError()
>  GetLastErrorMsg(@cMessage, @nLength)
>  MESSAGEBOX("The PDF Writer print queue could not be created." + CHR(13) + ;
>    "and returned the following error message:" + CHR(13) + CHR(13) + ;
>    ALLTRIM(cMessage) + CHR(13) + CHR(13) + ;
>    ALLTRIM(STR(nOutput)), ;
>    48 + 4096, ;
>    "JFAST Message")
>ENDIF
>
>Note: When you switch from the demo to the non-demo drivers you'll have to uninstall the demo print queue, install the new one and reboot the machine. Here's the code to remove the queue...
>
>
DECLARE INTEGER OpenPrinter IN winspool.drv;
>  STRING pPrinterName, ;
>  INTEGER @phPrinter, ;
>  STRING pDefault
>
>DECLARE INTEGER DeletePrinter IN winspool.drv;
>  INTEGER phPrinter
>
Not sure I understand what are you saying.
Mark
>pPrinterName = "PDF Writer"
>phPrinter = 0
>pDefault = REPL(CHR(0),8) + CHR(12) + CHR(0) + CHR(15) + CHR(0)
>
>IF OpenPrinter(pPrinterName, @phPrinter, pDefault) != 0
>  DeletePrinter(phPrinter)
>ENDIF
>
>Hopefully this will spare you the headaches I had trying to uninstall that queue in code. It might be possible to do this in Installshield script but I couldn't figure out how to make an external declaration from a DRV file.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform