I need to update my data as printed if it actually went to printer. Print preview does not count. But if from the preview windows they selected to print I need to know exactly what was printed. Thanks
Before the report prints, you can check if the Report.PrinterDevice is nil. If it is non nil then the report is generating to the printer. See the main reports demo #124 for an example.
Just a side comment... having struggled with this issue: Because of printer job queuing the report may still not actually be printed... it was just submitted to the printer. Something to think about :-)
That is correct, RB simply generates to the print spool. Once the report has generated all the pages, RB does not wait around to talk to the printer to see if pages actually printed or not. If you want to know whether or not a report actually pritned to the printer, you'll have to make some Win API calls to get this information. There have been posts about this in our newsgroup. Try searching the Win API or our newsgroups via tamaracks search engine or google search on our newsgroups.
Comments
If it is non nil then the report is generating to the printer. See the main
reports demo #124 for an example.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Because of printer job queuing the report may still
not actually be printed... it was just submitted to the printer.
Something to think about :-)
Jon
generated all the pages, RB does not wait around to talk to the printer to
see if pages actually printed or not. If you want to know whether or not a
report actually pritned to the printer, you'll have to make some Win API
calls to get this information. There have been posts about this in our
newsgroup. Try searching the Win API or our newsgroups via tamaracks search
engine or google search on our newsgroups.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com