Reportworks. Show Status

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Robert_(Guest)
Posts: 12
Joined: Tue Oct 10, 2017 12:44 pm

Reportworks. Show Status

Post by Robert_(Guest) » Thu Jul 06, 2006 8:58 pm

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__

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Reportworks. Show Status

Post by kfleming » Fri Jul 07, 2006 8:36 am

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

Robert_(Guest)
Posts: 12
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Reportworks. Show Status

Post by Robert_(Guest) » Fri Jul 07, 2006 4:45 pm

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

Robert_(Guest)
Posts: 12
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Reportworks. Show Status

Post by Robert_(Guest) » Fri Jul 07, 2006 4:53 pm

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

Post Reply