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.
Related
I have crystal report on window form C# to display multi image. I know that crystal report use the "Paging File" of Windows to swap data. I open and close report several times (about 3 times) then i get message "Memory full" when the Physical Memory was free. I think that need to clear data in the paging file when close the report(I have use GC.Collect(), set report to null and dispose report but does not solve the problem)
Please help me how to clear data in the paging file using c# when i close crystal report ?
Thanks you very much.
you need to close de report and then dispose it.
MyReport.Close();
MyReport.Dispose();
also dispose the viewer
MyCrystalReportViewer.Dispose();
SAP Crystal Reports Version 14.1.1.1036.
I have setup two printers on my server, both printers are to the same printer but different trays. Different paper in each tray, we'll call them PrinterA and PrinterB. I am trying to print a two page report to the two printers, basically page 1 going to PrinterA and page 2 going to PrinterB. There are hundreds and thousands of these to print. I've created a main report page, added two subreports, one subreport on page 1 and the other subreport on page 2; then tried to set different printers to each subreport or page. Every time I go back to the main page, the last saved printer is selected for the main and each subreport. I was hoping that the printer I setup for each subreport would be used, but this is not the case. I know this can probably be achieved via 3rd party tools (Visual Cut maybe??), but is there any way to do this natively in Crystal Reports? And we do need the pages matched up in one output tray, otherwise we would just setup two jobs and print all page 1s to one printer and all page 2s to another printer. Thanks.
Visual CUT can indeed do this using one of two different methods. See this in the user manual.
The process starts with automating the export to PDF and then splitting the printing of the PDF across the desired printer trays.
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.
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.
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