Stephen
Got the new version, refactored the Access automation code, and it works
great with the following printer drivers:
HP 4
HP 5
HP 4050
HP Color LaserJet 5/5M
It does not behave well with the following printer drivers:
hp deskjet 895c series
HP LaserJet 1200 Series PCL 6
hp photosmart 1115 series
On the printers where it does not work well, it no longer dies with the
"page size not supported" error, but it does create PDF's with *VERY* weird
page sizes. Doing some quick testing I got the following results.
hp deskjet 895c series page size 0.38 x 0.39 in
HP LaserJet 1200 Series PCL 6 page size 0.04 x 0.04 in
hp photosmart 1115 series page size 0.04 x 0.04 in
Would be a tremendous way to save paper, but it's really hard to read. At
1200 DPI the 0.04 x 0.04 page can only hold 48 dots in each direction.
All of my testing was done on a simple one page report, text only, that was
set with 1" margins all around and standard US Letter size paper. Perhaps
with these clues you will get a eureka moment, and solve the mystery.
The best part is I conducted a quick test at the client site and it works
great there also. So for now I am in "Semi Fat City". All that is left for
me to do is to replace all of the lines on the reports with boxes, and have
the reports get their "WHERE" condition from a hidden field on the form that
calls them. I have made the decision to deploy this version and upgrade
when you have DLL only solution.
Buy the way, my customer is running Access 2002 and I tested with your
Access 2K MDE without problem. I deploy all of my Access projects as A2K
MDE's (except for my Runtime guys) with no problems. Is there anything that
I should be on the lookout for from your experience?
I can't even begin to thank you enough for your help with the surprisingly
difficult (for me at least) task of programmatically generating PDF 6files
from Access. I have no doubt that your method is destined to become yet
another "Best Practices" for the Access Developer community.
I am in your debt. I can't imagine what it might be, but please do not
hesitate to call on me should you need another pair of eyes or hands for
testing or whatever.