Solved

crystal reports export to PDF create unalign fields

Posted on 2009-04-06
10
666 Views
Last Modified: 2013-11-26
Hi i am generating a report using crystal reports XI and vb.net 2003
the report has to be in pdf
so i create and align a very simple report on crystal
all the fields have the same font size, same heigh and are align vertical to the top
but when i use the code to export to PDF  and them open the PDF file
the fields are unalign one up and one down
if you see the 2 images one "vista crystal.jpg" the 25.000 are align with the USD
and in the file "vista pdf.jpg" the 25.000 is not align with the usd
why that happend?

my crystal version is 11.5.8.826
and visual studio 2003
vista-crystal.JPG
vista-pdf.JPG
0
Comment
Question by:jamatheus
10 Comments
 
LVL 7

Expert Comment

by:PCIRichard
Comment Utility
Try aligning the bottom of the firlds rather than the top.

Not sure why, but sometines the alignment of data fields compared to formulae / summary's only works of you align bottoms
0
 

Author Comment

by:jamatheus
Comment Utility
thaks pci richard
but all the fields are same heigh and the Y location is 0 in the two cases
but still when i get the pdf version
the two field are different align
maybe i need to change the Y location ???
0
 
LVL 34

Expert Comment

by:James0628
Comment Utility
Are you exporting the report to PDF from CR XI or from your program?

 If it's your program, have you tried exporting to PDF from within CR XI?  Does it come out the same way?

 When you view the report in CR XI and export it to PDF from your program, are you doing both from the same computer?

 If you're using different computers, does the second computer (where you're running your program) have the same printer drivers installed as the computer that's running CR XI?  CR uses the printer drivers to prepare the report output.  I'm not sure if this applies to PDF exports, but for displaying or printing a report, if the same printer drivers are not available, the report output can be affected in various ways (wrong font, wrong page size, etc.).

 James
0
 

Author Comment

by:jamatheus
Comment Utility
hi james
i am exporting to PDF from my code in vb.net
when i eport from CR XI the fields are align
but when i export from vb.net it change the align
but the code and cr xi are in the same server
maybe i need to update the printer drivers or something like that
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:jamatheus
Comment Utility
other tihng the server does not have printers
only have image printer and adobe acrobat 7 printer

does i need to install a printer in there?
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
If the image printer is set as default it would use that one.

Are you exporting from code in VB or through the viewer?

Viewers can also affect the display since they use different algorithms to display the reports

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
Comment Utility
If you're running CR and your code on the same computer, then if the printer, or lack of printer, were a factor, I'd think that it would affect both in the same way, unless, as mlmcc suggested, there was another factor involved.

 James
0
 

Author Comment

by:jamatheus
Comment Utility
i am exporting to PDF using CODE

the code run in the same server
i will try your answer today and let you know

thanks

i create the CR report in my pc with one printer and them upload the report to the server where it run the vb.net to export
0
 

Accepted Solution

by:
jamatheus earned 0 total points
Comment Utility
thanks all
i need to install a printer in the server so the text get better
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

9 Experts available now in Live!

Get 1:1 Help Now