07-29-2009 04:49 PM
I am writing this program that prints an excel sheet.
I have to use pdf creator to save file in pdf, then using pdf creator to print to another printer right after saving.
BUT pdf creator is not alligning my paper correctly.
I want one of my subvi to select another printer that is not my default printer. I set the default right now as pdf creator.
is there a way to do that?
thank you in advance!
Solved! Go to Solution.
07-29-2009 04:54 PM
Doesn't anybody search anymore?
http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/app_printdefprinter/
07-29-2009 05:05 PM - edited 07-29-2009 05:13 PM
i tried looking, but i didnt find any solution to my problem on this forum yet.
i am using labview 8.5.
the query available printer.vi is not found?
07-29-2009 05:19 PM
krispiekream wrote:i tried looking, but i didnt find any solution to my problem on this forum yet.
i am using labview 8.5.
That property is available in 8.5 as well.
the query available printer.vi is not found?
I have no idea what you're talking about. Are you talking about this VI:
http://zone.ni.com/reference/en-XX/help/371361D-01/lvreport/query_avail_printers/
The VI is in the Programming -> Report Generation -> Advanced Report Generation palette. Use the Search button in the functions palette.
07-29-2009 05:22 PM
07-30-2009 10:19 AM - edited 07-30-2009 10:20 AM
i tried looking for the advanced report generation pallete but my labview 8.5 doesnt have that vi in it.
i was just going to use the two vi i found in this forum to get a list of printers i currently have.
select the printer i want to be the default printer momentary. Then in the end of the routine, change back the old default printer and close the vi.
i think its using active X but its alright. i am using activeX to print my test data so its fine using it.
i think its a solution.
i havent tried it yet.
i will do it right now..
07-30-2009 10:33 AM - edited 07-30-2009 10:34 AM
krispiekream wrote:i tried looking for the advanced report generation pallete but my labview 8.5 doesnt have that vi in it.
I don't quite understand this. Did you search for the VI using the "Search" button in the palette? You're using ActiveX, so you're clearly running Windows, so it's not an issue of that VI not being available due to being on a different operating system. Do you have a Report Generation palette? This is where it is:
Note that the Printing:Available Printers property returns the same information:
07-30-2009 10:50 AM - edited 07-30-2009 10:55 AM
haha..opps..i am using on my notebook is labview 8.5.
my testing development i am also working on is using labview 7.0.
i have to use 7.0 and it doesnt have it.
sorry about the confusion. But, I'll try using the activex pr.printers that you mentioned. I should get the same results.
07-30-2009 11:07 AM - edited 07-30-2009 11:08 AM
krispiekream wrote:haha..opps..i am using on my notebook is labview 8.5.
my testing development i am also working on is using labview 7.0.
i have to use 7.0 and it doesnt have it.
sorry about the confusion. But, I'll try using the activex pr.printers that you mentioned. I should get the same results.
Well, now things make sense. Both the Printing:Available Printers and Printing:Default Printer property are available for 7.0, so you don't have to resort to ActiveX. The ActiveX will probably work. Ultimately it's your choice.
07-30-2009 11:40 AM
Cool.
You have been a great help!
Thanks!