Link to home
Start Free TrialLog in
Avatar of Mike_Tuggle
Mike_Tuggle

asked on

VB6(SP3) Report Designer problem.

I have tried to get the report I'm working on to utilize the full page (8.5 x 11).  Specifically labels 3 across and 10 down.  Each label is 3780 twips wide by 1440 twips high with 225 twips separating each horizontally and no separation vertically.  There is a 720 twip margin at the top and bottom of the page.  I have set top and bottom margins to 720, and left and right margins to 0.  I have set the orientation to Portrait.  When the report prints, "they've" added 720 twips to the left side of the report and my labels are all shifted by that amount.
Avatar of jimbobmcgee
jimbobmcgee
Flag of United Kingdom of Great Britain and Northern Ireland image

Does the left margin actually increment by 720?  If not, the gutter may be due to the printable area of your printer.

J.
Avatar of Mike_Tuggle
Mike_Tuggle

ASKER

The left margin value was 0 when I submitted the report to be created, still 0 when the report was displayed in the Report Designer window, and 0 when control returned to the calling program.

I have created a test report using Access' report writer and it doesn't have this problem (both using the same printer).
Does the same error occur if you, say, print to PDF using Acrobat or CutePDF drivers?
Now you have exceeded my knowledge and capabilities with this language.  Can you give me a "quck" hint on how I would go about trying this?  I searched the Knowledgebase but didn't locate how to "print to" anything other than a file or html format.  I tried to simply print to a file with a .pdf extension but Acrobat didn't recognize the format when I tried to open it.  That was probably too simple.
If you go to http://www.cutepdf.com, you'll find a freeware driver that acts like a printer but writes to PDF.  I only ask because I wonder if the same error occurs on something that. by rights, _shouldn't_ necessarily have a margin...

Just an idea, to start with.  If it doesn't shift on the PDF, it might be the printer (or VB's command of the printer) itself...
Before I go to this amount of trouble, remember that I did successfully print to the printer without the added left margin using the report writer in Access.  I'm guessing that this is a VB Report Designer issue and I may be forced to work around it.
I expect you're right but I can't recreate the error myself.  I'm just trying to reduce all the options

    Step 1: See if it works for a different device;
    Step 2: See if there's something missed in the code that is indenting the display;
    Step n: Work around it, scaling everything down to account for it...

But I'm sure you've already thought of these...

J.
I did Steps 1, 2, & n.  No change.  I'd be happy to send you my rpt file.  It has one field in it.  As it stands right now, I'm going with the work-around.  

Just one last question and then I'll close this question.

I am running VB6 (SP3).  I applied Service Pack 5 and it was consistently blowing up so I re-installed from my original CD and then applied SP3.  I'm a bit confused on the downloads available.  There is a vs6sp6.exe (3/29/2004) and a vb6sp6B.exe (3/29/2004) and, under vbRun60sp6.exe a file named VB6.0-KB290887-x86.exe is downloaded.  Should I be upgrading to one or more of these and, if so, is there an order that I should be doing it in?

Maybe upgrading will solve my problem.
ASKER CERTIFIED SOLUTION
Avatar of jimbobmcgee
jimbobmcgee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial