I'm filling in some white space on a pretty complex Access 2010 report with some boxes drawn using the me.line method from the report's Page event.
I've been stuck on this for a week and am starting to think it's a glitch with Access. I'm hoping someone can think of a work around.
When I pass the starting Y coordinate as a variable (i.e. Me.Line (X1, SomeVar)-(X2,Y2), , B) the box displays in the print preview, but does not show up if sent to a printer.
When I pass the starting Y coordinate as a literal (i.e. Me.Line (X1, 1234)-(X2,Y2), , B) the box displays in both print preview and actual print.
Since I'm calculating the box's position on the fly it's imperative I be able to pass a variable and not just some predetermined number.
Some things I've tried that haven't worked:
- Changing data types (tried all numeric types (short to double) + variant)
- Decompiled the db and recompiled.
- Changed position, color, DrawWidth of box
- Neither physical printers, nor pdf printers will display the box when the starting Y coordinate is passed as a variable.
It's especially maddening because I use this same technique in the detail section to draw some boxes and they display on the print preview as well as actually print.
This is a regulatory document and must be formatted exactly as specified. I have zero wiggle room to change the format.
Anyone ever seen this before?