Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create customer paper with HP LaserJet
Message
De
30/01/2013 01:21:52
Mk Sharma
Shrishti Solutions
Mumbai, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to create customer paper with HP LaserJet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01564629
Message ID:
01564629
Vues:
126
How to create Customer papers in "HP LaserJet 1020" Programatically ?

I am use below code to create customer papers
http://www.berezniker.com/content/pages/visual-foxpro/add-and-delete-custom-printer-forms
* All sizes in inches
LOCAL lcPrintername
lcPrintername = GETPRINTER()
WAIT WINDOW lcPrintername  NOWAIT
IF EMPTY(lcPrintername)
   MESSAGEBOX("Please Select a Printer ",0+64,"Alert !!")
   RETURN
ENDIF

ooo = NEWOBJECT("AddPrinterForm", "AddPrinterFormClass.fxp")

IF NOT ooo.AddForm("8x6", 8,6, lcPrintername)
   MESSAGEBOX(ooo.cErrorMessage+CHR(13)+ooo.cApiErrorMessage,0+64,"Alert !!")
ENDIF
ooo = NULL
with above code When we select Dot-Matrix printer it is showing size 8x6, but with HP "LaserJet 1020" not showing.

If we create custom paper manually in "HP LaserJet 1020" then it is showing 8x6 in paper list of "HP LaserJet 1020"

Image Attached

Warm regards,
mk.
Répondre
Fil
Voir

Click here to load this message in the networking platform