February 20, 200223 yr While in preview mode I would like to have a print button included with the continue and cancel buttons. I would like to print the report and still be able to look at it on screen...
February 20, 200223 yr Mike: I would suggest staying in Browse mode until you print. When you hit the Print button, have a script take you into Preview Mode, print, then go back to Browse mode. Would that work for you? Ken
February 20, 200223 yr Author Actually Ken, I've seen DB's that when they went to a report in prview mode they also had a print button available...
February 20, 200223 yr Michael, It may have been visible on the screen, but you wouldn't be able to click it until you returned to browse mode.
February 20, 200223 yr Or... go into preview mode, use the Copy command to copy the previewed layout, paset the image into a global field, then display the global field on a layout with the buttons in browse mode. The result is a true representation of the page previewed, but you're in browse mode so you can use buttons. The only shortcoming is that other pages are not directly accessible: this can be solved by scripting a return to preview, go to next page, copy image, paste into global field, return to faux preview layout.
February 21, 200223 yr quote: Originally posted by Michael Huddleston: Actually Ken, I've seen DB's that when they went to a report in prview mode they also had a print button available... Most likely they were not really in Preview mode. You were simply on a printable layout. Buttons do not work in Preview mode. There are many ways to fake it, but I still find the best way is to put the user in Preview mode with Allow User Abort [off] and showing them the status bar with a paused script. They can then scroll the pages and press the Continue button or hit enter. I then prompt them with a message asking if they want to print and if so bring up the print dialog. The above method gives the user all the flexability they will ever need without really giving them control over the application.
Create an account or sign in to comment