11-30-2007 09:11 AM
11-30-2007 09:22 AM
11-30-2007 09:45 AM
11-30-2007 09:54 AM
11-30-2007 10:52 AM
12-03-2007 06:00 PM
Hi reza_sed,
You might try changing the default printer and then using FileMan Print File.vi. Here is a link to another discussion forum that mentions one way to change the default printer. Be very careful using this VI though, because it edits the Windows registry which can be dangerous.
12-04-2007 08:57 AM
Hi James
Thanks for the reply, but it is not the printing or choosing the default printer that is the problem. I am creating an application that will be used by customers and I wanted it to have a print capability where the user can press the print button and have the print dialog box pop up. From there the user can then select the printer, the paper size and then print. Now i can open the dialog box with the print dialog.zip but that only has one output and that is whether or not to print, and the FileMan Print File.vi only prints to a default printer. I don't want to exactly change the default printer since that might not be what the user wants to do plus the fact that it edits the windows registry is not to desirable for an application. I have looked through these forums quite a bit and i still haven't been able to find what i want, which I believe isn't that demanding or weird, its just a standard print dialog box that allows you to choose a printer and print. Almost every application has is, even Labview (Print Window...)!
Thanks
Reza
12-05-2007 10:30 AM
Hi Reza,
My thought with changing the default printer was that it could be changed back automatically after the print job was sent. Just an idea. As far as getting the standard print dialog, if you look at the C code of how it was done in the PrintDialog VI, you can see that the PrintDlg function is called toward the bottom. There is more information on how to use these Microsoft functions on the MSDN website located here:
It might require a bit of work to get the standard print dialog box to show up, and then from there to print the document.
12-05-2007 11:23 AM