Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

crystal reports export to PDF create unalign fields

Posted on 2009-04-06
10
Medium Priority
?
679 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 35

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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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 101

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 35

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

971 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