Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 13 OCT 2004 11:44:56AM Warren Auyong wrote:

Here's the deal. Off the menu the user selects an option that prints a series of related reports. They are given the option to route to the printer or to preview on the screen.

This is done in a BASIC+ procedure which performs a series of RUN_REPORT(,RLIST Statement) calls. The problem is a RUN_REPORT call "pre-empts" the previous one in preview mode. Thus the user only really gets to view the last run_report. I tried putting a 'ok' MSG call between each RUN_REPORT but since the MSG is modal you cannot do anything with the Print Preview window. Can the print preview window be opened modal from RUN_REPORT (or any other means)? </QUOTE> —- === At 13 OCT 2004 11:59AM Sean FitzSimons wrote: === <QUOTE>Warren, The name of the preview window is VSPRINTER. You will need to check for the existence of this window prior to running each RUN_REPORT. If the window exists, hold off running. If the window doesn't exist run it. This requires that the report be displayed then the user needs to close the window before the next report is displayed. Sean </QUOTE> —- === At 13 OCT 2004 12:06PM Warren Auyong wrote: === <QUOTE>Great, thanks! </QUOTE> —- === At 13 OCT 2004 05:04PM Warren Auyong wrote: === <QUOTE>Okay, using UTILITY('OBJECTLIST',,'WINDOW') I put a loop while 'VSPRINTER' is in the list before the next RUN_REPORT statement.

When I do this I cannot get operate any of the control on the Preview window.

I tried adding a call to DELAY() in the loop but this made no difference.


At 14 OCT 2004 04:06AM Tim Marler wrote:

Try a Yield() call instead of delay.

Tim


At 14 OCT 2004 05:55PM Warren Auyong wrote:

I was just thinking that this morning :)

Thanks!

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/8b8abb09fdfa546f85256f2c005682e6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1