Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with simulating PROMPT option
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Problem with simulating PROMPT option
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01530554
Message ID:
01530554
Vues:
92
Hi everybody,

I had the code that used

REPORT FORM ... TO PRINTER PROMPT...

I need to print every label separately as a new print job. So, I've changed the way it was coded slightly
lcPrinter = getprinter()
   if not empty(m.lcPrinter)
     set printer to name (m.lcPrinter)
     select r_invent
	 go top   
      scan for layout==m.lcLayout
   
         report form (m.lcLayout) to printer noconsole NODIALOG NEXT 1
*         set printer TO file '' && want to end a print job
      endscan
   endif
However, the GetPrinter dialog is not the replication of the PROMPT dialog in the REPORT FORM. In particular, how can I set the number of copies and respect that?

I believe I did stumble upon this problem before and have my findings documented here
http://fox.wikis.com/wc.dll?Wiki~ReportFormPromptClause~VFP

I haven't tried implementing the other suggestion in this topic.

Does someone have ideas here?

Also, we're using ReportBehavior 80 in our application.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform