LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set what printer to use for printing

Solved!
Go to solution

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!

Best regards,
Krispiekream
0 Kudos
Message 1 of 10
(4,186 Views)
0 Kudos
Message 2 of 10
(4,185 Views)

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?

 

 

 

Message Edited by krispiekream on 07-29-2009 05:13 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 3 of 10
(4,178 Views)

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.

palette search.png

 

0 Kudos
Message 4 of 10
(4,170 Views)
OK. Now I have NO clue what you're doing or talking about. You went back to edit your post and included two VIs that are using some ActiveX class (what are these for?), and even marked your response as the answer!
0 Kudos
Message 5 of 10
(4,166 Views)

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..

Message Edited by krispiekream on 07-30-2009 10:20 AM
Best regards,
Krispiekream
0 Kudos
Message 6 of 10
(4,130 Views)

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:

 

 

Message Edited by smercurio_fc on 07-30-2009 10:34 AM
Download All
0 Kudos
Message 7 of 10
(4,125 Views)

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.

 untitled.PNG

 

Message Edited by krispiekream on 07-30-2009 10:55 AM
Best regards,
Krispiekream
0 Kudos
Message 8 of 10
(4,122 Views)
Solution
Accepted by topic author krispiekream

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.

Message Edited by smercurio_fc on 07-30-2009 11:08 AM
Message 9 of 10
(4,108 Views)

Cool.

You have been a great help!

Thanks!

Best regards,
Krispiekream
0 Kudos
Message 10 of 10
(4,102 Views)