Strange Crystal Report formatting problem - crystal-reports

I am using Crystal Reports v10.0.x on Windows Server 2003 SP2. I have an .rpt file that gets exported into a PDF format using the Crystal Reports Engine thingy.
new CrystalDecisions.CrystalReports.Engine.ReportDocument().ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fullExportFileName);
I have this report on two boxes. Both the boxes are Windows Server 2003 with SP 2 running the same version of Crystal Reports. Let's call these boxes box 1 and box 2.
Till now, all reports ran fine on both the boxes. Suddenly, since yesterday, one box 1, all reports have a formatting issue. All reports that have text fields/text boxes with running paragraph text truncate the right most few characters on every line, or at least that is how they display it, if you know what I mean.
For e.g. the text
Today is a great day for everything else except this problem I am facing with
Crystal Reports. And then, there's a whole lot of work to do after this. I am
sick and tired of this job.
is displayed as:
Today is a great day for everything else except this problem I am facing w
Crystal Reports. And then, there's a whole lot of work to do after this. I a
sick and tired of this job.
The code on both the boxes is the same, and the .rpt files, too, are the same. Please help.

Check for changes to printer settings on Box 1, as these are generally used by Crystal when rendering a report. If the default printer is changed, the rendering will change.

Any formatting issues with Crystal Reports are ALWAYS related to fonts, printers, and printer drivers. If the reports were working fine, and now they are formatted differently, something changed with the fonts, printers, and printer drivers.
Are both machines printing to the same printer? Are you using a fairly standard font like Arial, Courier, Times New Roman, etc?
Open the report template and set the printer to the one you're having problems printing to. This will indicate to the report that it should format for that printer.

Related

crystal report 10 report header issue

I had a couple of reports which were working properly in crystal version report 9. While exporting the data to excel, it was working properly. But after upgrading to version 10, when we try to export to excel with data only option, the report header is not formating properly. The Report header has 3 rows, but wen I export it to excel(data only), it displays all in same line in version 10 and in different lines in version 9.
if I put it in different report header sections, issue is solved but there are many reports which makes it very difficult to make that change at all places. is there any other solution for this.
Can anybody help me with this.
Any help in this regard is welcome.
Thanks in Advance
Every version of Crystal Reports "tricks up" the Excel export settings and the formatting results they produce. Your only hope is to look at all the Excel output settings and find a way to recreate your expected output. There is a chance getting the EXACT output is not possible in the new version.
Note, your topic has nothing to do with Reporting Services and should not be tagged that way.

Crystal report to pdf's not generating as seen in Preview of Crystal Reports

I am generating a crystal report and using a C# prog to break or "burst" the file in to individual pdf's (using this prog.... Crystal Reports "File Break" )
When move the PageHeader section to the "Report Head" section, the details part of crystal reports does not show after the C# prog generates.
When I preview the crystal report from "preview" in crystal reports the detail section is there.....
Any Ideas?
Thanks in advance!!
I would post images but the site will not let me with out more than 10 rep points..
This is the crystal report preview
And this is after i generated the pdf.... See how the details section is not being populated, even tho in the preview in CR the activities are showing.... This all happened when i switched the top image to be in the group head instead of the page head....
Assuming there is nothing going on programmatically with hiding/suppressing sections, record selection, etc... generally, if a preview looks different than what is output to PDF or printed, it's always related to printer drivers, fonts chosen, and report printer setup.
For starters, I would make sure you're using a common "HP-compatible" printer as the driver (selected default printer while developing in Crystal) for the report. Also, just for testing purposes, change your report fonts to something VERY simple and "old school" like Courier or Arial. If you get the correct results after this, then go in and tweak/reapply your old fonts.
Also, make sure your individual field objects on the form are set to Can Grow. Additionally, always size your objects bigger than what it looks like it needs. For example, if a field looks like it needs to be 10 characters wide, size it 12 characters wide. This will help with printer and output incompatibilities.

print button in Crystal report viewer not working

I am using Crystal Repot 9 and VB6.0. I can display the report through Crystal report viewer properly. But the print button in the Crystal report viewer does not work. My printer is in network. If I print any other file such as .doc, .txt then the printer prints the file. But when I click the print button in the Crystal report viewer then it neither prints the report nor through any error message. Where is the problem? How can I solve this?
These thoughts come to mind:
Have you tried this more than 1 report? Maybe the file itself has a problem.
Can you get your IT to hook up a printer directly to your machine for about 5 minutes? (Yes, I know that is much harder to do than to say).
If it prints, then perhaps crystal has a problem with the printer network.
Try exporting your crystal file to PDF first, then print that.
You say that you're using VB6. Are you controlling Crystal thru automation in any way when printing this?
This might be better handled at ServerFault.com (see links below). It's a sister site to this one that has the same interface.

Crystal Reports: Inverted type when printing on certain printers

I inherited a .NET project with Crystal Reports which I upgraded from VS2005 to VS2008. Suddenly, some of the labels are inverting (ie. white text on black 'highlighting'). This is only on one printer. The rest of the printers print normally.
Is there a setting on the VS2008 CR designer that I'm missing (that only the one printer picks up on), or is this a printer driver issue?
Your issue could possibly be either, though if the report is working fine on other printers consistently I would look at the driver first. Some printers when given a stream of specific data will invert text, or will do so when given specific font data. This issue makes me think specifically of receipt printers that have limited font capabilities, is this a receipt printer?
Have you tried making a minor adjustment to the labels in question such as changing the font type or size to see if the text is still inverted on that particular printer? If that doesn't change your output, try uninstalling and reinstalling the print driver and resetting the printer itself.

crystal report 9

new page break is not working when exporting from Crystal report 9 using visual studio studio.net.
I have set the below options in crystal report 9 design
paper size is a3 and orientation is landscape.
I have created 2 report groups (date and org unit)
I want a page break after every new date and after every new org unit.
I have already set the new page after in group footer1 and group footer 2.
when i export to excel it doesn't break the page after each group is changed.
Can anybody help me to resolve this issue.
thanks
bby
I said this in another question regarding exporting to Excel:
If this was made with CR, I've found
that if a report is going to
consistently be exported to Excel,
it's best to remove ALL formatting
that CR has/does. Otherwise you'll get
weird anomalies like what you're
experiencing and will save you a lot
of grief down the road.
What I've done for some of my users is
create one report with no formatting,
specifically for exporting, and one
report with all the bells and whistles
of CR.
Page breaks are not understood by Excel during the export. The best bet is to do a grouping on the report and render them as tabs in the Excel document.
Crystal has a long history of problems when exporting to excel. There are quite a few tips about on how to get both good looking reports on the screen and in an Excel worksheet. There is no one answer for your problem, as it really depends on just how your report is structured. I googled on "crystal reports page break excel export" and get plenty of material to look at. For example:
Exporting to Excel in Crystal Reports .NET - Perfect Excel Exports