LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Printer orientation

Hi,

I'd like to print a graph. So i put my graph in a subVI as recommended in
NI documentation then set "print vi at end of execution". My graph is printed
but i'd like to set the printer orientation to landscape dynamically Not by
setting the default setting to landscape because i have also some SubVi
to print in portrait.

I've seen the "set report orientation vi" but this one is only for text report
not graph.

I tried to make a call to an external application that set the default printer
to landscape/portrait but labview seems to check the settings of the printer
at start not before printing.

So if someone has a solution.

Thanks for to repliers !
0 Kudos
Message 1 of 3
(2,802 Views)
> I'd like to print a graph. So i put my graph in a subVI as recommended in
> NI documentation then set "print vi at end of execution". My graph is printed
> but i'd like to set the printer orientation to landscape dynamically Not by
> setting the default setting to landscape because i have also some SubVi
> to print in portrait.
>
> I've seen the "set report orientation vi" but this one is only for text report
> not graph.
>
> I tried to make a call to an external application that set the default printer
> to landscape/portrait but labview seems to check the settings of the printer
> at start not before printing.
>
> So if someone has a solution.
>


It isn't very clear how to do this, but I'm pretty sure that if you go
to the Page Setup dialog in LV and set the
printout to be in landscape,
then save the VI, LV will print that subVI always landscape, and the
others portrait.

I'm not at a PC at the moment; so I can't test it.

Greg McKaskle
0 Kudos
Message 2 of 3
(2,802 Views)
On Fri, 19 May 2000 20:13:23 GMT, Greg McKaskle
wrote:

>> I'd like to print a graph. So i put my graph in a subVI as recommended in
>> NI documentation then set "print vi at end of execution". My graph is printed
>> but i'd like to set the printer orientation to landscape dynamically Not by
>> setting the default setting to landscape because i have also some SubVi
>> to print in portrait.
>>
>> I've seen the "set report orientation vi" but this one is only for text report
>> not graph.
>>
>> I tried to make a call to an external application that set the default printer
>> to landscape/portrait but labview seems to check the settings of the printer
>> at start not before printing.
>>
>> So if someone has a solution.
>>
>
>
>It isn
't very clear how to do this, but I'm pretty sure that if you go
>to the Page Setup dialog in LV and set the printout to be in landscape,
>then save the VI, LV will print that subVI always landscape, and the
>others portrait.

Yep that works, I just recently had to do the same thing. But is
the original poster asking to do it programatically "i'd like to set
the printer orientation to landscape dynamically Not by setting the
default setting to landscape".

The only way I could think of do this is have two vi's, one for
landscape and one for portrait in a case switch.

Regards,

Steve Drake
0 Kudos
Message 3 of 3
(2,802 Views)