Solved

Crystal Report Margin different when printed

Posted on 2010-08-16
7
1,253 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 14

Author Closing Comment

by:Brook Braswell
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now