Page 1 of 1

Reportworks. Show Status

Posted: Thu Jul 06, 2006 8:58 pm
by Robert_(Guest)
I am using ReportWorks in a Visual Basic 6 Application.__There is a report select menu on a vb6 form, which is clicked and the report processed.____eg of the code is......... ____Report1.CopiesToPrinter = Wcopies__ Report1.Destination = PDest____ On Error GoTo badr__ Report1.Action = 1____I would like to display a "Processing" message when the report commences and the remove the message when the report printing is final and the report sent to the printer.____???Is there any way of determining that the report has printed and is complete, so that i may remove the message.____I note the reportworks icon show running on the bottom task bar of windows and removes itself when complete.____regards Robert__

=> RE: Reportworks. Show Status

Posted: Fri Jul 07, 2006 8:36 am
by kfleming
Here is the info from the Help file:__You print a report synchronously by setting the Action property to 1 (e.g., RRReport1.Action = 1). When you print a report synchronously, the status of the report is returned in the following properties:____LastErrorCode, which will contain the type of error that occurred, or 0 for no error;____LastErrorString, which will contain a text message describing the error, if any;____LastErrorPage, which will contain the page number of the last page printed.____Kathleen__R&R Support

==> RE: Reportworks. Show Status

Posted: Fri Jul 07, 2006 4:45 pm
by Robert_(Guest)
Kathleen,__Thanks for you reply.____I am using the command you have mentioned.____It looks like if i get the status of the last page printed this will let me know when the report is fully printed.____I have tried __ xxx = Report1.Action = 1__ MsgBox (xxx)__ __But , all i get is False____Appreciate details of how i get the status of the report in vb6.____Regards Robert

===> RE: Reportworks. Show Status

Posted: Fri Jul 07, 2006 4:53 pm
by Robert_(Guest)
Kathleen,____I have looked more closely in the .pdf manual and found all the details.____Sorry i did not do this before., problem all solved.!!!!____Appreciate your help____Regards Robert