R
Rob Hofkens
Hello all
I am exploring the printing abilities of reports over a network and trying
to understand the mechanics.
The current situation I am in, involves a small network with 2 network
printers and 2 local printers.
Most users use one of the network printers as their default printer, some
the other network printer and some a local printer.
Depending on which user is logged in my application I would like to send a
report to the users defaut printer.
So far I found that reports can be set two ways:
a) Set to the default printer and by changing the default printer via VB you
could redirect it to another printer.
b) Set to a specific printer which requires no code but you need to set it
during the creation/editing of the report.
With my next questions I presume that above is correct.
With option a) I noticed that changing the default printer via code is
actualy changing the default windows printer and this may conflict with
other programs.
And sending the same report to a different type printer as the one with
which the report is created, raises questions about settings like margins
settings, bin number etc.
I presume that the report adjust itself to the default settings of that
printers driver but I may want to change these settings if needed.
With option b) I feel most confident because you make the report specificaly
for that printer and settings are ok for sure.
Printing the report via VB code is easy because no printer setting is
requered.
But I am unhappy that everytime I edit the report it defaults back to the
default printer and I need to go to print preview and change the printer
setting.
This option doesn't allow me to send the same report to different printers,
and so I am thinking to make different versions of the same reports, each
for the right printer but I have to use my user loging data to pick the
right report to print and thats is a lot more work and more maintenance if
the report content needs to change.
I also noticed that the printer setting for a report regarding device and
port, are read only which means I could not set it via code if I wanted
because I was thinking to make some sort of initialisation code that sets
the reports printer setting instead of going to the preview screen and set
it manualy.
It would be great if someone could advice how to handle this situation.
Thanks in advance.
Rob.
I am exploring the printing abilities of reports over a network and trying
to understand the mechanics.
The current situation I am in, involves a small network with 2 network
printers and 2 local printers.
Most users use one of the network printers as their default printer, some
the other network printer and some a local printer.
Depending on which user is logged in my application I would like to send a
report to the users defaut printer.
So far I found that reports can be set two ways:
a) Set to the default printer and by changing the default printer via VB you
could redirect it to another printer.
b) Set to a specific printer which requires no code but you need to set it
during the creation/editing of the report.
With my next questions I presume that above is correct.
With option a) I noticed that changing the default printer via code is
actualy changing the default windows printer and this may conflict with
other programs.
And sending the same report to a different type printer as the one with
which the report is created, raises questions about settings like margins
settings, bin number etc.
I presume that the report adjust itself to the default settings of that
printers driver but I may want to change these settings if needed.
With option b) I feel most confident because you make the report specificaly
for that printer and settings are ok for sure.
Printing the report via VB code is easy because no printer setting is
requered.
But I am unhappy that everytime I edit the report it defaults back to the
default printer and I need to go to print preview and change the printer
setting.
This option doesn't allow me to send the same report to different printers,
and so I am thinking to make different versions of the same reports, each
for the right printer but I have to use my user loging data to pick the
right report to print and thats is a lot more work and more maintenance if
the report content needs to change.
I also noticed that the printer setting for a report regarding device and
port, are read only which means I could not set it via code if I wanted
because I was thinking to make some sort of initialisation code that sets
the reports printer setting instead of going to the preview screen and set
it manualy.
It would be great if someone could advice how to handle this situation.
Thanks in advance.
Rob.