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,
Patrick

Sounds 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

Similar Messages

  • 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.
    Jimmy

    Post 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

  • 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,
    Amit

    k

  • 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

  • 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,
    Eswar

    Unfortunately, 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

  • Avoid Printer selection Dialogue box when printing Crystal report in JAVA

    Hi i am calling crystal report in my servlet using Report Client Document SDK, now i want to print the report directly to the default printer set without selecting the printer from the select printer dialogue box. In other words want to avoid the select printer dialogue box from appearing . Can any body suggest me how do i do this .
    Any suggestions appreciated.

    In javascripting the code is
    function Print()
    if (document.all)
    WebBrowser1.ExecWB(6, -1) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
    WebBrowser1.outerHTML = "";
    <object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
    CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    But the above code does not work in windows XP SP2.... and i cannot restrict my clients OS.
    where as C#,ASP.NET  provides the functionality to print directly to printer as
    The ReportDocument class provides PrintToPrinter method that may be used to print a CR direct to the printer. If no printer is selected, the default printer will be used to send the printing pages to.
    The PrintToPrinter method takes four parameters.
    nCopies : Indicates the number of copies to print.
    collated : Indicates whether to collate the pages.
    startPageN : Indicates the first page to print.
    endPageN : Indicates the last page to print.
    The following steps will guide you to achieve the same:
    Add crystal report (.cr) file to your ASP.NET application.
    Add a report instance on the page level.
    Dim report As MyReport = New MyReport
    Populate reports data on Page_Init 
      ' Get data in a DataSet or DataTable
            Dim ds As DataSet = GetData()
            ' Fill report with the data
         report.SetDataSource(ds)
    Print Report
    report.PrintToPrinter(1, False, 0, 0)
    If you wish to print certain page range, change last two parameters From to To page number.
    If you want to set page margins, you need to create a PageMargin object and set PrintOptions of the ReportDocument.
    The following code sets page margins and printer name:
    Dim margins As PageMargins =  Report.PrintOptions.PageMargins
       margins.bottomMargin = 200
       margins.leftMargin = 200
       margins.rightMargin = 50
       margins.topMargin = 100
       Report.PrintOptions.ApplyPageMargins(margins)
       ' Select the printer name
       Report.PrintOptions.PrinterName = printerName
    Thn Why not a java SDK for Crystal report can provide such a functionality...
    Edited by: rtabassum on Mar 25, 2010 6:34 AM
    Edited by: rtabassum on Mar 25, 2010 6:36 AM
    Edited by: rtabassum on Mar 25, 2010 6:42 AM

  • Crystal Reports hanging in Enterprise

    Just suddenly we are facing issues with some of the crystal reports . they were working fine in Business objects up to yesterday but today they are hanging , even when we try to open/modify parameter they hang. we are using Crystal report 2008 and BO R3.1.
    evnthough some reports hangs the others just run fine.
    we noticed that , the reports which are stopped working are the ones that have  " Printer Option" unchecked in Crystal Report designer . when we open these reports in designer and check that option on pagesetup and  save them back in enterprise they are working.
    I have no luck to find the rootcause of this issue. what have changed that caused this issue.
    It is happening on both test and production environments. I read somewhere on forum that it might be  related to printer driver, but we haven't updated any driver and nothing seems to be changed.
    any ideas?

    In the page setup put the option Microsoft XPS Document Writer in the Printer option before publishing it to BO Server .

  • Report Displays in Viewer but Web Print produces blank pages

    I am using VS 2008 w CR 2008 SP2 in a web application deployed on Win2008. 
    I have set the report to display all pages so that the users can hit the print button on their browser (IE7).  When the report is shown in the report viewer it looks perfect.  When the print button on the browser is used blank pages with the url on top/bottom of each page print, but there is no report. 
    If I use the print preview and turn on the background layers, I can see that the report background is on two and half pages, which would be corect; but there is no report text or data.
    Any ideas?

    Hello,
    If you page through the report in the viewer is all the data visible?
    Have you handled the postback event so that the report is in session before you print?
    Look at the samples in the Crystal Reports Visual Studio .NET [Samples|http://www.sdn.sap.com/irj/boc/sdklibrary?rid=/library/uuid/d0bf8496-2a81-2b10-95ac-b1f48d5b63f5]. Go to the "ReportDocument_Object_Model_Tutorials" and look at the "RDObjMod_Session" sample.
    There are also different methods for printing from the web. Printing from the Print control on the viewer downloads an ActiveX print control to the local system. The user needs to have Administrator rights for it to install and register. For information on web printing options look at the article[ "Printing Web based reports with Crystal Reports for Visual Studio .NET"|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/600c24a3-ab1d-2b10-1bb4-c50562e353cb].
    Elaine

  • Crystal Reports Hangs on .Load event

    Hi ,
    We are using CR 2011 on Windows environment (2008 R2) and  run the following workflow.
    1. We have created a rpt with 9 sub reports.
    2. We would like to print the port to a particular printer and hence have set the flag <NO Printer> on the report
    3. The application is a windows based application and not a web based application.
    4. We have tested the report by launching the report and printing it on the desired printer.
    5. We have a windows service that executes the code of reading the report and printing it out as a pdf / printer.
    6. Step 4 is an event based activity that occurs as frequently as every 2 minutes.
    7. The database is Oracle 11g
    PROBLEM:
    1. Generally all runs well, however once / twice a day the report hangs.
    2. We have created a dump file and observed that the hang occurs on .LOAD event.
    3. We are using the .LOAD with a single parameter that of the report name.
    4. We also observed that the spooler service hangs
    5. We are disposing the report immediately after printing it.
    After the problem occurs we are forced to start the windows service and the printer spooler service.
    Solutions tried so far:
    1. Changing the No Printer flag did not give any results.
    2. We have created a job that restarts the windows service and the spooler service after a period of 30 mins. - This has minimized the occurances but not eliminated the problem.
    Pseudo code:
    ReportDocument CR = new ReportDocument()
    CR.Load(<report file name);
    //Set Main data Source
    CR.Database.Tables[0].SetDataSource(ADODB.Recordset)
    //set sub reports
    CR.Subreports[<Index>].Database.Tables[0].SetDataSource(data table)
    //here it prints on default printer or the set printer. (Printer s are UNC printers, however we register them - they are visible as local printers on the given machine -  locally before printing)
    CR.PrintToPrinter(noOfCopies, false, fromPage, toPage);
    CR.Close()
    CR.Dispose()
    IF required we can also provide the rpt file and any other details.
    Our customers are really suffering cause of this and any help would be really appreciated.
    Thanks
    Anil

    Hi Ludek,
    In continuation, please find the stack for the hang.
    As we can see there is a OutOfMemory exception followed by a Stack Overflow exception and then we have the CrstalReports function calls.
    005b99b4   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnPropertyChangedEventHandler
    005b98f8   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnPropertyChangingEventHandler
    005b983c   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnSavedEventHandler
    005b9780   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnSavingEventHandler
    005b96c4   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_PreSavingEventHandler
    005b9608   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnClosedEventHandler
    005b954c   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnClosingEventHandler
    005b9490   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_PreClosingEventHandler
    79ad78cc   
    1      
    68 System.Diagnostics.Tracing.EventSource+OverideEventProvider
    77eb9860   
    1      
    68 System.Drawing.BufferedGraphicsContext
    5fb97d40   
    1      
    68 System.Configuration.AppSettingsSection
    04028214   
    1      
    68 System.Text.RegularExpressions.Match
    79ae71b8   
    2      
    72 System.Globalization.CompareInfo
    79ae0b30   
    2      
    72 System.Threading.ExecutionContext
    79ae0014   
    3      
    72 System.Guid
    79ad7804   
    1      
    72 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]][]
    5fb97254   
    3      
    72 System.Configuration.ConfigurationElementCollection+Enumerator
    5fb9715c   
    6      
    72 System.Configuration.ConfigurationValues+ConfigurationElementsCollection
    049d8ff4   
    3      
    72 System.Windows.Forms.Layout.DefaultLayout+AnchorInfo
    049d71dc   
    6      
    72 System.Windows.Forms.ControlEventArgs
    049d70b4   
    3      
    72 System.Windows.Forms.Layout.LayoutUtils+MeasureTextCache
    04059b30   
    1      
    72 System.Diagnostics.FilterElement
    03e04348   
    3      
    72 System.Collections.Generic.List`1[[Microsoft.Win32.SystemEvents+SystemEventInvokeInfo, System]]
    79ae9250   
    1      
    76 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo
    049d7208   
    1      
    76 System.Windows.Forms.NativeMethods+STARTUPINFO_I
    79ae4468   
    5      
    80 System.Text.DecoderReplacementFallback
    79ae4418   
    5      
    80 System.Text.EncoderReplacementFallback
    79ae01b4   
    5      
    80 System.DateTime
    79ada500   
    2      
    80 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
    79ad9728   
    1      
    80 System.Resources.ResourceManager
    79ad7268   
    1      
    80 System.Resources.ResourceReader
    79ad5374   
    2      
    80 System.IO.BinaryReader
    77eb942c   
    2      
    80 System.Drawing.SafeNativeMethods+LOGFONT
    77eb8c74   
    2      
    80 System.Drawing.Icon
    0403c604   
    4      
    80 System.Text.RegularExpressions.ExclusiveReference
    040285b4   
    4      
    80 System.Collections.Specialized.HybridDictionary
    040284e0   
    4      
    80 System.Collections.Specialized.ListDictionary+DictionaryNode
    79ae2570   
    1      
    84 System.ExecutionEngineException
    79ae252c   
    1      
    84 System.StackOverflowException
    79ae24e8   
    1      
    84 System.OutOfMemoryException
    79ae2394   
    1      
    84 System.Exception
    79ad7460   
    3      
    84 System.Resources.ResourceFallbackManager+<GetEnumerator>d__0
    051abba4   
    1      
    84 System.Windows.Forms.SaveFileDialog
    049d8aa8   
    7      
    84 System.Windows.Forms.UICuesEventArgs
    049d611c   
    3      
    84 System.Windows.Forms.PropertyStore+PaddingWrapper
    049d53c4   
    3      
    84 System.Windows.Forms.Padding
    04059a1c   
    1      
    84 System.Diagnostics.ListenerElement
    04026734   
    2      
    88 System.Diagnostics.TraceSwitch
    049d643c   
    1      
    92 System.Collections.Generic.KeyValuePair`2[[System.Drawing.Font, System.Drawing],[System.Windows.Forms.Internal.WindowsFont, System.Windows.Forms]][]
    79ae68c8   
    3      
    96 System.Reflection.MemberFilter
    79ad7f34   
    3      
    96 System.Text.UTF8Encoding+UTF8Decoder
    7971adc8   
    4      
    96 System.Collections.Generic.List`1[[System.Reflection.MethodInfo, mscorlib]]
    7971a530   
    2      
    96 System.Collections.Generic.Dictionary`2[[System.Type, mscorlib],[System.Byte[], mscorlib]]
    7971941c   
    4      
    96 System.Collections.Generic.List`1[[System.String, mscorlib]]
    5fb97e10   
    1      
    96 System.Configuration.KeyValueConfigurationCollection
    5fb95c3c   
    2      
    96 System.Configuration.ClientConfigPaths
    05199e20   
    6      
    96 System.Windows.Forms.KeyEventArgs
    049d18fc   
    4      
    96 System.Windows.Forms.NativeMethods+TRACKMOUSEEVENT
    04059794   
    1      
    96 System.Diagnostics.SwitchElementsCollection
    04059710   
    1      
    96 System.Diagnostics.SharedListenerElementsCollection
    04059588   
    1      
    96 System.Diagnostics.SourceElementsCollection
    0403c1dc   
    4      
    96 System.Collections.Generic.List`1[[System.Text.RegularExpressions.RegexOptions, System]]
    03e0411c   
    2      
    96 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.UriParser, System]]
    79ae9154   
    1     
    100 System.Runtime.Serialization.Formatters.Binary.__BinaryWriter
    79ae6af8   
    5     
    100 System.Security.PermissionToken
    79ad7848   
    1     
    100 System.Diagnostics.Tracing.FrameworkEventSource
    04029fd0   
    1     
    100 System.Diagnostics.FileVersionInfo
    049d5984   
    1     
    104 System.Windows.Forms.Application+MarshalingControl
    79ae90dc   
    1     
    108 System.Runtime.Serialization.Formatters.Binary.ObjectWriter
    5fb969ac   
    9     
    108 System.Configuration.ConfigurationPropertyCollection
    79ae26bc   
    1     
    112 System.AppDomain
    5fb96bb8   
    4     
    112 System.Configuration.StreamInfo
    0403c55c   
    4     
    112 System.Text.RegularExpressions.RegexFCD
    04028518   
    4     
    112 System.Collections.Specialized.ListDictionary
    04025bec   
    7     
    112 System.Collections.Specialized.NameObjectCollectionBase+NameObjectEntry
    79ae2d3c   
    3     
    120 System.Security.Policy.Evidence
    797183c0   
    5     
    120 System.Collections.Generic.List`1[[System.Type, mscorlib]]
    049d7190   
    6     
    120 System.Windows.Forms.Control+ControlCollection
    04059890   
    2     
    120 System.Diagnostics.TraceSection
    040593d4   
    2     
    120 System.Diagnostics.AssertSection
    79aed4a4   
    4     
    128 System.Text.UTF8Encoding+UTF8Encoder
    79adec44   
    8     
    128 System.Runtime.InteropServices.HandleRef
    79adb030   
    8     
    128 System.Security.Permissions.UIPermission
    049d54a4   
    8     
    128 System.Windows.Forms.PropertyStore+SizeWrapper
    049d4ecc   
    8     
    128 System.Windows.Forms.PropertyStore
    0403c5cc   
    8     
    128 System.Text.RegularExpressions.RegexPrefix
    0403c594   
    8     
    128 System.Text.RegularExpressions.RegexFC
    0402c194   
    8     
    128 Microsoft.Win32.SystemEvents+SystemEventInvokeInfo
    0402aab4   
    4     
    128 Microsoft.Win32.UserPreferenceChangingEventHandler
    79ad0adc   
    3     
    132 System.Reflection.RtFieldInfo
    77eb82ac   
    3     
    132 System.Drawing.Font
    049d5618   
    1     
    132 System.Windows.Forms.Application+ThreadContext
    005ba0e4   
    2     
    136 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper
    Regards,
    Anil

  • Crystal Viewer report hangs

    Hello,
    I am having a problem deploying a Crystal report to run under IIS/aspx using the CrystalReportViewer.
    I rdp to the windows 2008 server, start crystal reports and the report works under Crystal on the server fine.
    Running the same crystal report on the same server using IIS/aspx and the viewer has a problem. I load the aspx page, the viewer shows a prompt with server name, database name, user name and password information. The details are all right, I enter the password and I just get the message 'Please wait while the document is being processed' that just stays there indefinitely. Everything is on the same server except the SQL Server and database. Crystal Reports and ODBC reach SQL Server fine and Crystal shows the report from the server, but the viewer just hangs.
    I have done this on two other customer servers and the above worked fine - the crystal report showed in the viewer. There is something different on this server that I cannot figure out.
    I stripped down the report to a single table and a few fields u2013 no multiple tables, joins, sub-reports, created a very simple report to try and isolate the problem. I also removed all the VB code behind u2013 pretty well just load the report and display.
    I loaded the CRRuntime_32bit_13_0_2 on the server, created an IIS application, copied over the report and aspx/code behind and tested.
    the web config has the Version=13.0.2000.0 assemblies.
    Any help resolving this issue would be appreciated. I have looked at 100s of google posts, most very similar, but none have helped get this report going.
    Thanks Nick

    Hello,
    I took a step back to basics.
    I copied one of the sample projects and made the changes needed to get it working properly.
    crsdk_net_samples_12_0_\Reduced_Code_Tutorials\ReducedCode_DBLogon\CS_Web_ReducedCode_DBLogon\CS_Web_ReducedCode_DBLogon.
    The report appeared properly in the browser now - no hanging after entering login inforamtion.
    I tested with the client 10 and native SQL Server drivers and both worked fine.
    I thought great problem solved, but when went back to version using some code behind same problem. I checked the aspx and made it identical to the one that works. So the aspx, IIS app, Crystal report, everything else is identical. The only difference is the cod behind.
    **** Using this works
    <Report FileName="C:\inetpub\wwwroot\CrystalReports\Transcript_ReportV3.rpt">
    **** replace with codebehind creates hang
            Response.Write("Report Path = " & Server.MapPath("Transcript_ReportV3.rpt") & "</BR>")
            Test1.Load(Server.MapPath("Transcript_ReportV3.rpt"))
            With CrystalReportViewer
                .ReportSource = Test1
            End With
    The full code used is below.
    Getting closer but still not there yet.
    Any other ideas appreciated.
    Thanks Nick
    '************ *This works - report shows in browser*
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Test-cl10-dynamic.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
        <link href="/aspnet_client/System_Web/2_0_50701/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
                Height="1039px" ReportSourceID="CrystalReportSource1" Width="901px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="C:\inetpub\wwwroot\CrystalReports\Transcript_ReportV3.rpt">
                </Report>
            </CR:CrystalReportSource>
        </div>
        </form>
    </body>
    </html>
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    public partial class _Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
    '************ *This does not work - report hangs after entring authenticaion information*<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Test1-dynamic.aspx.vb" Inherits="Test1" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
        <link href="/aspnet_client/System_Web/2_0_50701/CrystalReportWebFormViewer3/css/default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <asp:Label id="MyText" runat="server" />
        <CR:CrystalReportViewer ID="CrystalReportViewer" runat="server" AutoDataBind="True" Height="1039px" Width="901px" />
        </div>
        </form>
    </body>
    </html>
    Partial Class Test1
        Inherits System.Web.UI.Page
        Dim Test1 As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            Response.Write("Report Path = " & Server.MapPath("Transcript_ReportV3.rpt") & "</BR>")
            Test1.Load(Server.MapPath("Transcript_ReportV3.rpt"))
            With CrystalReportViewer
                .ReportSource = Test1
            End With
        End Sub
    End Class
    Edited by: Don Williams on Jan 27, 2012 9:17 AM

  • 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,
    Surbakti

    Since this issue has little to do with sql server, I suggest you post your question to a forum for CR
    SAP CR community

  • Report generated from Report Server to Web Brower can't print

    We are doing a web-based project using Form & Report 6i.
    Reports are called from forms with a parameter PAGESTREAM = YES
    It works and reports in web brower(IE 5.5 SP2) are with two frames, with bottom the default Oracle Page Navigation Menu, and top the corresponding page.
    However, when we try to print the page out, error occurs...
    An error dialog box shown:
    A Runtime Error has occurred.
    Do you wish to debug?
    Line : 1188
    Error : Invalid procedure call or argument.
    We can't print even one page....
    Please, anyone know what's going on and how to fix it?
    Thank you in advance.
    Wilson.

    hello,
    this sounds like a bug. please contact oracle support services and open an iTAR with them
    regards,
    philipp weckerle

  • 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

  • Empty report returned from WEBI and Crystal report when using external hier

    Hi,
    WEBI and Crystal report build from BEX query returned empty report when we used external hierarchy 0PROFIT_CTR.  In BEX we don't have any problems with it.
    No authority check is perfomed on the hierarchy when we start the report in WEBI/Crystal. Only check on the hierarchy is performed when the root authorization is assigned to the user

    We using BO4  SP12

Maybe you are looking for