?
Solved

Crystal Report Margin different when printed

Posted on 2010-08-16
7
Medium Priority
?
1,451 Views
Last Modified: 2012-05-10
I am using:
 vb6 sp6
 Crystal Report 2008 ( version 12.0 )

I have a report created against an SQL Anywhere DB.
Right and Left Margins in the Designer are 0.125
Page Setup has Adjust Automatically UnChecked.

When Printing from the Crystal Designer and measuring against the actual paper edge
the report is 0.225

When printing from VB6 the entire report seems to scale up and the physical edge becomes 0.1

The report and the Application were both designed on the same computer.
Windows XP.

The application does not change margins or scaling.

What could be causing the report to "Grow" when printed in VB6?



0
Comment
Question by:Brook Braswell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 750 total points
ID: 33451300
Interesting.  According to SAP/Crystal, CR2008 doesn't work with VB6 or other .COM languages.

Are you using an earlier version of Crystal dlls with VB6?

mlmcc
0
 
LVL 14

Author Comment

by:Brook Braswell
ID: 33453574
The viewer used in vb6 is actually for Crystal XI. (craxdrt.dll)
The report was created with XI and converted to 2008.

0
 
LVL 14

Author Comment

by:Brook Braswell
ID: 33454455
After doing some further investigation I have:
Created 2 reports from scratch that have a box of 8.1 width and Left/Right margins of 0.20
1 report created with the CR-XI designer and the other with CR-2008.  Both Identical.

Results.
The report created in CR-XI Prints exactly as designed in both the designer and VB6
The report created in CR-2008 designer prints CORRECT from VB6 but is scaled SMALLER when printed from the designer.

I have found I still have a problem but it is the opposite of what I was thinking.
My reports created with the CR-2008 are actually printing fine from VB6 using the CR-XI drivers.  The reports printing in the CR-2008 designer seem to be scaling smaller than designed.

From sample report created (again with box of 8.1 in Width and Page Setup of 0.20 Margins)
Result is: Box width of 7.825 with left margin of 0.325

Go Figure......
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Author Closing Comment

by:Brook Braswell
ID: 33455079
Correct in that SAP/Crystal does not have an .com for VB6 but know that the XI driver still prints the 2008 developed reports.  CR-2008 appears  to try and "fix" things that it really should not.
0
 
LVL 14

Author Comment

by:Brook Braswell
ID: 33455180
Leaving a comment that did not get saved from before accepting answer.

Realized that my report also had a Top Margin of 0.20.  I increased this to 0.30 and the report did not scale down in size.  I went back to my original problem and made sure...
Width of report is 8.25, left and right margins are 0.125, Top Margin set to 0.30.
Report prints fine now in both CR-2008 designer and in VB6.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 33458774
Th eissue may have to do with the CR XI components not handling the CR2008 format quite correctly.

mlmcc
0
 
LVL 14

Author Comment

by:Brook Braswell
ID: 33463973
That would not be true - at least in this case.
Reports created from both CRXI and CR2008 print the same in every example and test that I created.  The problem was how CR2008 designer was rendering the report when the margins were less than what the printer could handle.
Example:
Report with Top, Left, Right and Bottom Margins of 0.125 created in each version of CR.
Both print the exact same and correctly when going through the VB6 app using the CR XI objects. Also the CRXI designer printed the report exactly as VB6 did.  ( no brainer )
CR2008 scales the report down to fit within the printer capabilities.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question