• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 682
  • Last Modified:

crystal reports export to PDF create unalign fields

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
and visual studio 2003
1 Solution
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
jamatheusAuthor Commented:
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 ???
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.).

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

jamatheusAuthor Commented:
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
jamatheusAuthor Commented:
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?
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

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.

jamatheusAuthor Commented:
i am exporting to PDF using CODE

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


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
jamatheusAuthor Commented:
thanks all
i need to install a printer in the server so the text get better
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now