Printing from preview...
My app prints fine when sent direct to the printer. When I preview it
everything looks fine on screen, I press the print button and it shows the
dialog "Printing page 0..." and sits there in an infinite loop. If I press
cancel the dialog disappears but the printer then starts to churn out
endless blank pages. If I then press the print button again (from within the
same preview) it prints fine! Press the button again and the loop
happens...press it again and it prints..and so on... it's as though
something is being toggled on and off. Does anyone have any idea what could
be causing this, I hate to think I've got to go back to QuickReports!!!
Regards
Richard
everything looks fine on screen, I press the print button and it shows the
dialog "Printing page 0..." and sits there in an infinite loop. If I press
cancel the dialog disappears but the printer then starts to churn out
endless blank pages. If I then press the print button again (from within the
same preview) it prints fine! Press the button again and the loop
happens...press it again and it prints..and so on... it's as though
something is being toggled on and off. Does anyone have any idea what could
be causing this, I hate to think I've got to go back to QuickReports!!!
Regards
Richard
This discussion has been closed.
Comments
I suspect one of two things.
1. Try running the RBuilder\Demos\Reports\Demo.dpr application. Preview
and print any of reports in that application and see whether they have
the same problem. If so, then the problem is the printer driver.
Download the latest printer from the manufacturers web site and try
again.
2. The thing I suspect is that you have some event-handler code that is
manipulating the dataset. Comment out all event-handler code and run the
report. See the article below.
---------------------------------------------------------
Tech Tip: Troubleshooting DataAccess Errors
----------------------------------------------------------
1. Do not filter the dataset of modify it any way once the report.Print
command is issued. If you need to do master/detail and cannot use
linked datasets, then use the master DataPipeline.OnRecordPositionChange
event to filter the detail dataset.
2. The reports and datapipelines use dataset bookmarking. Make sure
the dataset can support bi-directional navigation.
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com