Solved

Crystal Report Margin different when printed

Posted on 2010-08-16
7
1,395 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 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

696 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