This is the plan.
>Hmm, messagebox() or shortcut menu.
>
>MartinaJ
>
>>Thank you, Martina. This will work; and this is what I meant when saying that when user clicks on the button, he/she would have a choice of two items: preview or print.
>>
>>>Hi Dmitry,
>>>
>>>Export to PDF and print to PDF are two ways how to create PDF output.
>>>
>>>If you use XFRX, then you call XFRX Preview and your user can choose export to PDF or print to some printer. You can set default output/printer for both cases.
>>>
>>>MartinaJ
>>>
>>>>Hi,
>>>>
>>>>I am working on a program that consists of a grid. That is it, the program is just one grid. In this grid the user will see all work orders assigned to him/her. One of the columns of the grid will allow the user to print any of the work orders in the grid.
>>>>But sometimes, a user does not want to print but simply a view the order; in a report preview format. And the key is that I don't want to have two button - that is to take two columns - one for print, one for preview. In my initial test, I do the preview by using the doPDF driver installed on my PC. So, by choosing this driver, I can view without printing. But I do not want to "force" the customer to install a doPDF or some other driver that allows to convert a print to a PDF.
>>>>Instead I want all the functionality be in the program.
>>>>
>>>>I can add a small menu, when user clicks on this button that will ask if user want to Print or Preview.
>>>>
>>>>So, my question, how else would you suggest having both Print and/or Preview in one button of the grid?
>>>>
>>>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham