LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure automatically my printer

Hi,
 
I am currently printing some pdf files in A5 format. For the moment, I configured manually the printer as it is the only paper format that I use. But I need now to mix A4 and A5 pdf files.
How can I configure the printer settings to automatically switch between A4 and A5 ?
 
Thanks a lot
0 Kudos
Message 1 of 8
(3,586 Views)
Hi Guillaume,
 
Could you post here a sample VI that show your current code?
By the way, is this possible for you to give us your physical configuration (printer model/serie, LabVIEW version,...)?
 
Best regards,
BRAUD Jean-Philippe
Field Sales Engineer - Nord et Centre France
LabVIEW Certified Developper
0 Kudos
Message 2 of 8
(3,562 Views)
Here is an exemple code of what I want to do. Some pdf files are A4 and others are A5.
 
I am using Labview 8 (but will switch next to 8.20) and the printer is currently (but might change) a Ricoh Aficio MP C4500 copier with printer features.
 
Thanks,
0 Kudos
Message 3 of 8
(3,544 Views)

Hi Guillaume,

Thanks for posting here. Unfortunately, two sub-VIs are missing so I cannot launch it.

Could you explain here what are the effects (maybe error messages) that you get by doing this?

Best regards,

BRAUD Jean-Philippe
Field Sales Engineer - Nord et Centre France
LabVIEW Certified Developper
0 Kudos
Message 4 of 8
(3,525 Views)

Hi Jean-Philippe,

Which sub VI are missing ? I can send.

There is no error when I launch this VI, except that the printer does not switch between A5 and A4, it always print on A4 even if the document is A5.

Thanks for help.

0 Kudos
Message 5 of 8
(3,519 Views)
Thanks!
 
The missing VIs are "Quit Application.vi" and "FileMan Print File.vi".
BRAUD Jean-Philippe
Field Sales Engineer - Nord et Centre France
LabVIEW Certified Developper
0 Kudos
Message 6 of 8
(3,514 Views)
Here are the files,
 
Thanks !
Download All
0 Kudos
Message 7 of 8
(3,509 Views)


@Guillaumeb wrote:
Hi,
 
I am currently printing some pdf files in A5 format. For the moment, I configured manually the printer as it is the only paper format that I use. But I need now to mix A4 and A5 pdf files.
How can I configure the printer settings to automatically switch between A4 and A5 ?
 
Thanks a lot


Not sure if LabVIEW 8.2 has changed anything here but I kind of doubt it. LabVIEW has no way of programmatically changing printer settings at all. This is not only because of plattform differences between the different LabVIEW plattforms but also because of printer setting differences that change very much between printer models. Getting an universal and working interface to this would be impossible and so I guess they felt not worth the huge effort that would still only result in a rather limited interface so far.

The only thing you can do in LabVIEW which sort of stores some of the common printer settings is to use the "Print Front Panel at Completion" option of LabVIEW front panels. The VI will save the common settings such as portrait/landscape of the currently configured printer and use that when being printed. Not sure if the paper size is also among them, but it might not since that can change a lot between printers too.

If you feel that this is not enough (hmm anyone here 😉 you should really make a product suggestion.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 8 of 8
(3,504 Views)