Solved

Crystal Report Margin different when printed

Posted on 2010-08-16
7
1,298 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
  • 5
  • 2
7 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 100

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 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