Solved

crystal reports export to PDF create unalign fields

Posted on 2009-04-06
10
668 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
ID: 24082687
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
ID: 24082858
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
ID: 24083352
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:jamatheus
ID: 24086566
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
 

Author Comment

by:jamatheus
ID: 24086760
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
ID: 24093938
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
ID: 24095050
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
ID: 24096689
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
ID: 24526620
thanks all
i need to install a printer in the server so the text get better
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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