Printing Crystal Reports in IE
Hello,
I am using CR 2008 for VS. When running a report in IE (multiple versions) and try to print, the report will not open in a new window as a PDF.... instead IE shows the notification bar at the bottom, asking if you want to save the PDF file. (see attached screen shot)
However, if I click on a hyperlink to a PDF in IE, it will open up in a new window without having to save it first.
Why is CR making IE force the user to save the PDF first? This is very inconvenient, and some users are having problems.
When I print a report in FireFox the PDF opens up without saving. Why is this not the case in IE?
Thanks!
I believe you are working with the version of CR that bundled with VS 2008 (Crystal Reports Basic for Visual Studio 2008 (v. 10.5))
The behavior you are seeing is expected with that version. If you are looking for a more intuitive printing (e,g.; no save dialog), you will have to upgrade to CR 2008 (v. 12.x) or SAP Crystal Reports, developer version for Microsoft Visual Studio 2010 / 2012 (v. 13.x).
SAP Crystal Reports, developer version for Microsoft Visual Studio (CRVS) is available as a free download from here:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
Eval of CR 2008 is available from here:
SAP - Crystal Reports 30-Day Evaluation
Oh. Here is a screen shot of what printing looks like in CRVS:
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Message was edited by: Ludek Uher
Similar Messages
-
Print crystal report without preview
Dear All,
i want print crystal report without preview.
when i click print button i want show printer list install in that computer.
so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
how that i can do that?
please help.
best regards,
SurbaktiSince this issue has little to do with sql server, I suggest you post your question to a forum for CR
SAP CR community -
Unable to print crystal report over web using ActiveX Control
Post Author: jimmyp
CA Forum: General
We have a problem with printing crystal report over web using ActiveX Control. When clicking print button, it only shows a blank dialog web crystal viewer page without any error. The page just simply hangs. We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE. It still does not print. Does anyone know why?
Environment.
Bundle Crystal Report v10
Asp.net 2.0
IE 6.0 or higher.
Appreciate for your help.
JimmyPost Author: Ian Kulmatycki
CA Forum: General
A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
-ian
When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
"A communication error occurred, printing will be stopped."
How can this error message be resolved?
Resolution
This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
This issue is addressed in the following components (and later versions):
PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
WebReporting.dll, version 10.0.5.785, dated 8/25/2004 -
Print crystal report in A5 paper tray
Dear Experts,
I am using VB.NET
We have different printers like "Lexmark Optra T612_DB", "HP Universal Printing PCL 5 (v4.7)", etc., in the network, there will be 2 or more trays for each printer. One of the tray has A5 paper in it. While printing Crystal report,
1. How to find in which tray A5 paper is present?
2. How to select A5 paper tray for printing?
If the above 2 are not possible with crystal report object:
1. How to print crystal report using PrintDocument object?
2. How to find in which tray A5 paper is present using PrintDocument object?
3. How to select A5 paper tray for printing? using PrintDocument object?
Currently with the following lines of .NET code, it is always printing in Tray 2
report.PrintOptions.PaperSize = PaperSize.PaperA5;
report.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
Regards,
EswarUnfortunately, it will be up to you to find out what tray the correct paper size is in, then set that to the report. The CR APIs do not look up these values, they just expect you to know these and set them.
Ludek -
Problem in printing Crystal Report from SAP Business One - the printing cut in it width margins
Hi
i'm trying to print crystal report layout from sap b1. when i preview the report as pdf file, i have the option to choose Fit in size option and then the layout print O.k with out any margins that been cut.
The problem start when i'm trying to print the layout directly from sap b1 (printer button) which cause the page to be cut in it width margins.
How can i control the printing of crystal layout when i'm printing it directly from sap b1? do i have the option to chose 'Fit page size' from sap system?Hi,
Please check SAP note:
1820939 - Page settings of Crystal Reports not transferred
correctly
Thanks & Regards,
Nagarajan -
Error message when trying to view/print Crystal reports in B1
I get the following Error message when trying to view/print crystal reports in SAP B1/Crystal Reports Integration Tool for SAP Business One:
" Could not load file or assembly 'Crystal Decisions Windows Forms, version=12.0.2000.0, Culture=neutral, Public Key Token=692fbea551e1304' or one of its dependencies. The system cannot find the file specified. ????Hi
Common issues for this :
1. Once you install crystall add on ,you need to go to Crystal report Administration >Account setup .
Put on the user name and password and click on creating ext tables
Try then running the report .
If not the case ,
make sure you install runtime .
You need :
1.Crystal report basic from SAP download -(Not necessary if you want only report viewer >
2.You need to have crystal integration addon (I think service pack is SP1)
3.Make sure you have runtime install
When you are installing ,make sure you restart your PC before you do or remove temporary file s
Hope this solves your issue
Bishal -
Printing Crystal reports via Great Plains 10
Hi,
I am unable to print (to printer) crystal reports in Great Plains 10. I can preview the report, export and print the exported file but the Print button does not respond when I click it (no errors, nothing) in the Crystal preview screen. We are using Crystal XI, Developers Kit.
I have set the report to 'No Printer', verified that I can print other files from the server, verified the default printer and I have spokes to GP (Microsoft), nothing has helped with this issue.
OS:
MS Windows Server 2003
Standard Edition
SP1
Thanks,Hi Carolyn,
Great Plains is an OEM partner of ours and they MUST resolve this issue for you. If they can not figure out what the problem is they can create a case on line to get help from Support to help you.
Not sure if you have Crystal Reports Designer or not but if you do can you print from the Designer? If you can then it's an issue in Great Plains software.
Thank you
Don -
Print crystal report without using the print button on toolbar
Hi,
I am working on Crystal report XI. I need to print the report w/o using the toolbar. So I have inserted a print icon in the report. On clicking that icon it should call a jsp page which will print the report. I am not able to call any print methods provided by JRC to do this.
Can someone help me with this problem.
Is there some other way to implement it ?
Thanks
Message was edited by:
CR_newbiePrint the report where? On what printer? The server's printer?
Java code runs on the server. You can't affect the client's computer from JSP.
You can write javascript code which can call window.print() but that is working through the browser to display the print dialog box (as if the user selected file:print) -
Huge delay in Printing Crystal Report Layout
Good Day Experts,
I am experiencing big delays when printing a document that makes use of a Crystal Report Layout Design.
For example,
The Sales Quote is set to automatically print when added by the user.
When clicking 'Add', SAP freezes up and only about 30 seconds later does the printer finally print the document.
During that time, the user cannot use SAP at all.
The layout does have a lot of fields and a few formulas here and there.
Logically, I am thinking that that is the reason for the delay, as SAP needs to calculate and populate those fields.
Is there any other way that I could speed up this process? Or if you know what might be causing this speed issue?
Your assistance will be appreciated,
Thanks
Regards
DarioHi Dario,
Pl Try the Below Threads and Ref SAP Notes Provided by NagaRajan.
http://scn.sap.com/message/13419121#13419121
http://scn.sap.com/thread/2024941
Regards,
Vamsi -
Error in Printing Crystal Report Directly to Printer using SDK Code
Hello ,
I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
as (Document Number).But While running the Code the Report is not getting printed and also the system is
not able to fetch the correct data in the report using the supplied parameter .
I am using Visual Studio 2005 Crystal Report dll s in my code :-
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports
Imports System
Imports System.Data.SqlClient
Imports System.IO
For Clarification i am pasting my code below :-
Dim oRpt As ReportDocument
oRpt = New ReportDocument
oRpt.Load(Path)
With crConnectionInfo
.ServerName = Server
.DatabaseName = Database
.UserID = User
.Password = Password
End With
CrTables = oRpt.Database.Tables
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
If Printer <> "" Then
oRpt.PrintOptions.PrinterName = Printer
End If
oRpt.PrintToPrinter(Copies, False, 0, 1)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
Please suggest me what i have to do in my code to print the report with correct data in report.
Thanks & Regards,
Amitk
-
Print Crystal Report directly from C# without using Report Viewer
Hello All,
I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
Regards
using CrystalDecisions.CrystalReports.Engine;
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace csharp_win_printtoprinter
/// <summary>
/// Summary description for Form1
/// </summary>
public class Form1 : System.Windows.Forms.Form
//CR Variables
ReportDocument crReportDocument;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PrintDialog printDialog1;
private System.Windows.Forms.Button button2;
private System.Drawing.Printing.PrintDocument printDocument1;
private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
private CrystalReport1 CrystalReport11;
private Chart Chart1;
/// <summary>
/// Required designer variable
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
// Required for Windows Form Designer support
InitializeComponent();
// TODO: Add any constructor code after InitializeComponent call
/// <summary>
/// Clean up any resources being used
/// </summary>
protected override void Dispose( bool disposing )
if( disposing )
if (components != null)
components.Dispose();
base.Dispose( disposing );
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor
/// </summary>
private void InitializeComponent()
this.button1 = new System.Windows.Forms.Button();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.button2 = new System.Windows.Forms.Button();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
this.Chart1 = new csharp_win_printtoprinter.Chart();
this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
this.SuspendLayout();
// button1
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(32, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(160, 104);
this.button1.TabIndex = 0;
this.button1.Text = "Print Report No Choose Printer";
this.button1.Click += new System.EventHandler(this.button1_Click);
// button2
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(272, 56);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(160, 104);
this.button2.TabIndex = 1;
this.button2.Text = "Choose Printer";
this.button2.Click += new System.EventHandler(this.button2_Click);
// crystalReportViewer1
this.crystalReportViewer1.ActiveViewIndex = 0;
this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
this.crystalReportViewer1.Name = "crystalReportViewer1";
this.crystalReportViewer1.ReportSource = this.CrystalReport11;
this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
this.crystalReportViewer1.TabIndex = 2;
// Form1
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(1164, 505);
this.Controls.Add(this.crystalReportViewer1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
#endregion
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
static void Main()
Application.Run(new Form1());
private void button1_Click(object sender, System.EventArgs e)
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new CrystalReport2();
//Use error handling in case an error occurs
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(0 ,true , 1, 1);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString(), "Unexpected exception");
private void Form1_Load(object sender, System.EventArgs e)
private void button2_Click(object sender, System.EventArgs e)
//Open the PrintDialog
this.printDialog1.Document = this.printDocument1;
DialogResult dr = this.printDialog1.ShowDialog();
if(dr == DialogResult.OK)
//Get the Copy times
int nCopy = this.printDocument1.PrinterSettings.Copies;
//Get the number of Start Page
int sPage = this.printDocument1.PrinterSettings.FromPage;
//Get the number of End Page
int ePage = this.printDocument1.PrinterSettings.ToPage;
string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new Chart();
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
crReportDocument.PrintOptions.PrinterName = PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString());1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
Visual C#
2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
SAP Community Network
La vida loca -
Fields missing while printing crystal reports !!
Hello everyone
I have a crystal report application in VB.NET 2005, which gets the values of a field from the database and supports printing of the report in the following formats
1. pdf
2. directly to a printer - printout
When i export the report using reportdocument to pdf , all the fields are getting printed : Normal - As expected
But when i print the report directly using PrintToPrinter method,i am not able to print some of the fields. i.e some of the entries are missing in that report printout
Can someone guess what could be the problem ???
Are there any limitations / preconfigurations that needs to be done apart from setting page size,margin before using the PrintToPrinter method
Regards
SrivatsaOK, a few incongruencies here:
I'm using the version of the Crystal Reports that ships along with the Visual Studio.NET 2005.
- that would make is CR 10.2
We have also tried applying the latest service packs crxir2_sp4_full_build
- So SP 4 for CR XI release 2 would not do you much good as per above (if you are indeed using CR 10.2(?))
- How did you get to the crxir2_sp4_full_build? This is in a gated section of the SAP website. The only publically available SP 4 for CR XI r2 is "incremental... If you did apply crxir2_sp4_full_build, then you are working with CR XI r2 now...
The behavior is seen in the web application and the behavior is seen both in the dev and deployment system.
- So this does not work anywhere? If so, why bother going to deployment?
Also i tried exporting to pdf soon before / after printing. But the fields are present in the pdf and not on the printouts
- Confirm that you do see the fields on an exported PDF and when you print the PDF you get a blank printout?
More clarification needed:
We need to be absolutely clear on what version of Crystal Reports you are using. Open your .NET project, go to your references and look for CrystalDecisions.Crystalreports.Engine.dll. What version is this assembly?
Also, please answer the rest of the questions above.
Ludek -
How to print Crystal Report within SAP Portal iView?
Hi All,
We are using BOEJ XI 3.0 with integration with SAP NetWeaver Portal. We are having a problem with printing a Crystal Report.
- We use the SAP iView to run a Crystal Report.
- Once the report is completed, we want to click on Print to send the report to a printer e.g. default printer.
- Then a screen pops up and nothing gets printed.
It seems the print control is not being transferred.
Has anyone had this problem and what the resolution is?
Thanks,
GarryHi Ingo,
Thank you for your response. I have just got off the phone with SAP. I was given two options.
- Install ActiveX control on user's PC
- Or set the user preference to use PDF in InfoView.
Both options seem to work. Now it is the question of security on using ActiveX. If this is the concern, then one can use the PDF option.
Hope this helps.
Regards,
Garry -
Default printer and problem with printing Crystal Report
Good morning
I have SAP B1 and on the client the default printer is "AMM_4014DN_PCL6_domain-srv FRONTE-RETRO"
Then i have another printer "AMM_4014DN_PS_domain-srv".
Before the default printer were the "AMM_4014DN_PS_domain-srv".
Now the default printer is "AMM_4014DN_PCL6_domain-srv FRONTE-RETRO".
When i push the button "Print" in the menu bar to print for example an invoice, instead of printing on the default printer AMM_4014DN_PCL6_domain-srv FRONTE-RETRO is always printing on then AMM_4014DN_PS_domain-srv.
The report to print was made with Crystal Report 2008 and on the report I also set the correct default printer (AMM_4014DN_PCL6_domain-srv FRONTE-RETRO).
So what's the problem ? Why is continue to print to the older printer ?
So i also delete the older printer (AMM_4014DN_PS_domain-srv) and very strange still printing on the old printer.
I also shut down the client, but no effect.
The operating system of the client is Win Vista and SAP B1 is host on a Win2008 server.
Thanks in advance.
Regards Gabrielehi,
Check this SAP Notes
[1030589 - Printing preference in document printing|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303130333035383926]
[1609615 - Obtain printer settings from default printing layout|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303136303936313526]
regards,
Fidel -
Web printing crystal report hangs on report.PrintOptions.PrinterName
Hello,
I have a report web page that displays a crystal report. I have added a modal popup to allow them to select their printers. When I go to print the report is hangs on the line of rpt.PrintOptions.PrinterName = li.Text. The printer names are added to the list box using a Java applet.
Here is the Sub it is running.
Public Sub PrintReports()
rpt = CType(Session("rpt"), ReportDocument)
For Each li As ListItem In Me.lbPrinters.Items
If li.Selected AndAlso li.Text <> "" Then
rpt.PrintOptions.PrinterName = li.Text
rpt.PrintOptions.PrinterDuplex = CType(Me.cboDuplex.SelectedItem.Value, CrystalDecisions.Shared.PrinterDuplex)
rpt.PrintToPrinter(CInt(Me.txtNumOfCopies.Text), True, CInt(Me.txtPageStartRange.Text), CInt(Me.txtPageRangeEnd.Text))
End If
Next
Me.mpePrint.Hide()
End Sub
Any help would be greatly appreciated.
Thanks,
PatrickSounds like you're trying to implement server side printing in your app. Which is fine, except the CR ActiveX print is client side printing. Just in case you're interested, the way to enable activeX print is to go to the property of the CR viewer and find "PrintMode". It will more than likely be defaulted to PDF. Change that to ActiveX.
Now, back to the issue. This may still be a matter of permissions - essentially what Adam was after. Probably the easiest way to determine that is to use the [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] utility. Once you have the log, search it for "Access Denied" messages.
Ludek -
Problem in printing crystal reports
Hi,
i am displaying Crystal report, which is have is having 4 pages of data.
while printing the data, after printing the first page , 2nd page is also start printing in 1st page page
Regards,
MVSwamyHi;
More information is always helpful in your posts. Please see our Rules of Engagement:
http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement
Things we need to know to help you:
What verison of Crystal Reports are you using?
Have you installed the latest service pack for it?
Is this happening in the Crystal Reports Designer, or an application?
If it is an application, what type?
Regards,
Jonathan
Maybe you are looking for
-
I am looking at buying a MacBook Air over the Pro mainly for the 12 hour battery. Just wondering if battery is compromised by upgrading to 8mb and upgrading to I7 Intel dual core. I am not very tech savvy so apologies if dumb question
-
How do I get lightroom on a new computer?
I purchased Lightroom 5 in October, installed it on my Mac laptop, it worked great, now I have upgraded my computer to a new model and can only install the trial version. How do I get the full version without purchasing again?
-
Hi All Does anyone know if it's possible to view batch numbers of stocked items using XL Reporter? Many thanks Hayden
-
Core dump at ::~RWCString
I am compiling with V5.0 compiler on solaris 2.6 I am getting the following core dump. I am using RogueWave with -library=rwtools7,iostream compiler option. The traceback from the core file is: signal SEGV (no mapping at the fault address) in RWRefer
-
Imovie crashing when I try to share to media browser or idvd. Help?
Every time I try to share my iMovie 9 project to the media browser or iDVD or export using Quicktime, the movie seems to load whether it takes 45 minutes or 14 minutes when at the end of the time it shuts down and doesn't complete the job on my 27" i