General information
Category:
Reports & Report designer
Environment versions
Network:
Windows 2003 Server
>Hi everybody,
>
>I'm using this code REPORT FORM oRegistry.ReportDir + "ShopInvoice" OBJECT loListener TO PRINTER PROMPT PREVIEW and then try to print several other reports using the same code.
>
>Is it possible to print all the reports to the same printer chosen by the first statement and don't preview the rest of the reports? Also, if the first report was cancelled, cancel the rest of the reports?
>
>Thanks in advance.
I've done very similar in the past and here's how. I would create either an array or a cursor of the following reports I would want to run and the "alias" that specific report required to ensure it would be pre-selected before the next instance of "REPORT FORM" was called. Before calling the first report form, check the current active printer, you will probably have to test within the listener to see if / what the status changes to. Then, use that in subsequent calls via set printer to name...
Then do a loop through the array or cursor and trap the escape and kick out as needed. First pass include the TO PRINTER PROMPT, but just have "TO PRINTER" on the rest of the reports.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only