Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Crystal Report Margin different when printed

Posted on 2010-08-16
7
Medium Priority
?
1,495 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
Technology Partners: 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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 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…
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…
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…
Suggested Courses

618 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