G
Guest
I have some reports that do not open correctly with certain HP LaserJet PCL6
drivers (4060 and 2200 at least). They open apparentlly zoomed but actually
print across 10 pages instead of 1.
Per Microsoft, this is due to some problems with those particular drivers;
however, I can resolve the issue for a report by recreating the report while
the default printer is set to Generic / Text Only. According to Microsoft,
that driver is generic enough to avoid the conflict with the affected HP
printer drivers. I believe I created the original reports using default
printer Adobe PDF, and it must contain information that conflicts with the HP
PCL6 printer drivers.
However, re-creating 30+ reports manually is extremely tedious and
error-prone, since I must create a blank report, reset all properties to
match the original report, then copy/paste all controls and code from the
original to the copy.
I tried SaveAsText & LoadFromText. However, SaveAsText includes the the
printer driver information as well, presumably in the PrtMip, PrtDevMode, &
PrtDevNames hex code sections. I then created a blank report using the
generic printer, did a SaveAsText, and attempted to replace the errant print
driver section of my original report's text file with the generic one, but I
cannot now LoadFromText the corrected text file. I believe the CheckSum of
the text file prevents this.
Now, if Microsoft would just release the checksum calculation algorithm to
me, I could recalculate & manually edit the CheckSum in the LoadFromText, and
I think I would have it made, but I'm not holding my breath waiting for
Microsoft to release that...
I really don't want to just tell my clients that my app just has a problem
with certain HP printer drivers, when these are so common, they never see
such a problem with any other applications, and the problem can be solved by
recreating the report while using a more generic default printer.
Any ideas on how to replace the printer driver for a report with another one
without re-creating the report from scratch?
drivers (4060 and 2200 at least). They open apparentlly zoomed but actually
print across 10 pages instead of 1.
Per Microsoft, this is due to some problems with those particular drivers;
however, I can resolve the issue for a report by recreating the report while
the default printer is set to Generic / Text Only. According to Microsoft,
that driver is generic enough to avoid the conflict with the affected HP
printer drivers. I believe I created the original reports using default
printer Adobe PDF, and it must contain information that conflicts with the HP
PCL6 printer drivers.
However, re-creating 30+ reports manually is extremely tedious and
error-prone, since I must create a blank report, reset all properties to
match the original report, then copy/paste all controls and code from the
original to the copy.
I tried SaveAsText & LoadFromText. However, SaveAsText includes the the
printer driver information as well, presumably in the PrtMip, PrtDevMode, &
PrtDevNames hex code sections. I then created a blank report using the
generic printer, did a SaveAsText, and attempted to replace the errant print
driver section of my original report's text file with the generic one, but I
cannot now LoadFromText the corrected text file. I believe the CheckSum of
the text file prevents this.
Now, if Microsoft would just release the checksum calculation algorithm to
me, I could recalculate & manually edit the CheckSum in the LoadFromText, and
I think I would have it made, but I'm not holding my breath waiting for
Microsoft to release that...
I really don't want to just tell my clients that my app just has a problem
with certain HP printer drivers, when these are so common, they never see
such a problem with any other applications, and the problem can be solved by
recreating the report while using a more generic default printer.
Any ideas on how to replace the printer driver for a report with another one
without re-creating the report from scratch?