Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

crystal reports export to PDF create unalign fields

Posted on 2009-04-06
10
Medium Priority
?
677 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
[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
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
Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 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