Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with simulating PROMPT option
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Problem with simulating PROMPT option
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01530554
Message ID:
01530554
Views:
93
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
Reply
Map
View

Click here to load this message in the networking platform