"No Error" exception when printing report after Export

Hello,
When calling a PrintToPrinter function after an Export of the same instance, the exception with the message "No Error" comes up.
This happens only for certain reports.
   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
   at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
   at FidelioCrystalNET.CrystalNET.Print() in CrystalNETLib.cs:line 127
Source      - "rptcontrollers.dll"
Same error also comes when calling either Refresh or VerifyDatabase methods.
Crystal Reports 2008 Runtime SP2 is installed. Reports using Oracle DB connection.
.NET code uses Framework 2.0
Anybody knows how to fix it?
Thanks
Edited by: Vitaly Gamarnik on Oct 26, 2009 1:07 PM

Hi Ludek,
I am able to reproduce the problem in a simple test code pure .NET (C#) application.
Here is the code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace CrystalLibTest
    public partial class Form1 : Form
        private ReportDocument crpe;
        private ConnectionInfo connectionInfo;
        public Form1()
            InitializeComponent();
            ReportTest();
        public void Init(string service, string user, string password)
            connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = service;
            connectionInfo.DatabaseName = service;
            connectionInfo.UserID = user;
            connectionInfo.Password = password;
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
        private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Sections sections = reportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
                ReportObjects reportObjects = section.ReportObjects;
                foreach (ReportObject reportObject in reportObjects)
                    if (reportObject.Kind == ReportObjectKind.SubreportObject)
                        SubreportObject subreportObject = (SubreportObject)reportObject;
                        ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
                        SetDBLogonForReport(connectionInfo, subReportDocument);
        private void AddCurrentValue(ParameterField field, object parameterValue)
            ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
            parameterDiscreteValue.Value = parameterValue;;
            field.CurrentValues.Add(parameterDiscreteValue);
        private void setParameter(string parameterName, Object parameterValue)
            ParameterField field = crpe.ParameterFields[parameterName];
            if (field != null)
                AddCurrentValue(field, parameterValue);
        private void ReportTest()
            crpe = new ReportDocument();
            Init("SERVICE", "USERNAME", "PASSWORD");
            crpe.Load("c:\\temp\\report.rpt");
            SetDBLogonForReport(connectionInfo, crpe);
            SetDBLogonForSubreports(connectionInfo, crpe);
            setParameter("SP-PARAM1", "param_value1");
            setParameter("SP-PARAM2", 1111);
           /* about 20 different parameters are here */
            crpe.ExportToDisk(ExportFormatType.RichText, "c:\\temp\\export.rtf");
            setParameter("SP-PARAM1", "param_value1");
            setParameter("SP-PARAM2", 1111);
           /* about 20 different parameters are here */
            try
                crpe.PrintToPrinter(1, true, 1, 65535);
            catch (Exception e)
                MessageBox.Show(e.Message);
               /*here the error comes up*/
I also found that for some different reports, the error comes even when executing first time. 
Vitaly

Similar Messages

  • Error 2032 when previewing report after apgrading to SP3

    Dear experts,
    I have a report that previously worked fine in 2008 SP1FP3 but now errors after upgrading to 2008 SP3. The report connects to an external data source using an XML Data refresh button sending some data to a URL and then loading a data table received back. The error message when previewing the report is as follows:
    Cannot access external data
    An error has occurred.
    For more information , contact the file creator or your system administrator.
    Error: Error no 2032
    Connection Type: XML Data
    Any advice will be appreciated...

    Hi,
    the error 2032 is a general stream error. Did you mark your XML file as trusted in the adobe settings?:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
    Is the XML file on other domain than yours? Then you will need a crossdomain policy file on the root of that server:
    http://ryangoodman.net/blog/index.php/2008/04/25/xcelsius_2008_cross_domain_policy_change
    Regards
    Victor

  • Hyperion IR 9.3.1 - Issue in printing the report after exporting it to pdf

    Hi All,
    I am facing a problem in printing the report after exporting it to pdf format using Hyperion Interactive Reporting 9.3.1. I have set page size of report section to 11X17 inch landscape. Now I am exporting this report section to pdf. Report gets exported to pdf with size 11X17 inch landsacpe. But when I am trying to print this pdf it is shrinking the documnet size to A4 size paper and printing it rather it should print it on 11X17 inch paper size. Please suggest if there is fix available for this issue.
    Thanks
    Ujjawal

    "File > Print Setup > Paper > Size" on PDF.
    I think this issue is only to do with the printer and not IR.
    I think the question now is "Can your printer print 11X17 pages or not".

  • I have vertical lines when printing even after changing cartridges.

    I have vertical lines when printing even after changing cartridges. There are no lines when copying, faxing or scanning, only printing. I have cleaned the glass, scanner and even dusted where the toner cartride slides in.  Any suggestions?

    Sorry but I have worked on laser printers for over 20 years and never encountered your issue.  That is of course if you are explaining it correctly.  When you make a copy to be printed or print a reports page from the printer or send a print job to the printer, if in all these cases you get the line, then yes the issue is either the toner cartridge or the fuser.  If you make a copy to be printed and it prints without the line (Put original in adf, press copy button and print should come out), then you have one weird unit since it does not make sense since the print formatter on the unit whether making a copy or printing from the computer or unit itself uses the same hardware.  Now to test if the printed copy has a line then just put a sheet of paper on top of the feed tray and do a self test from the printer.  When the back edge of the paper enters the printer, quickly open the toner door to stop the printing.  Remove the toner cartridge and look at the image below.  If the defect is present the toner cartridge is the issue and if the image below does not have the defect, then the fuser needs to be replaced.  Best I can do.  Good Luck.

  • Error message when printing Sales Order

    Hi,
    I get following error message when printing out a sales order just created.
    No matching records found 'Document' (RDOC) (ODBC-2028) (Message 131-183)
    Logged in as super-user, posting periods is unlocked. It is a new company just created. With sand-box company no errors-it prints properly to same printer.
    What could be the problem?
    Thanks,
    Ajay Audich

    Have you tried with system PLD?
    Thanks,
    Gordon

  • He XML message is going over to SRM from XI , but getting an application error (Exception)  when checking in sxmb_moni on the SRM side

    hi experts  ,
    we are using classic scenario (ECC 6.6 & SRM 7.0)
    we have are configured Procure-to-Pay Scenario ,Note 1263876 - SAP SRM: Configuration of Procure-to-Pay Scenario.
    but facing issue.
    The XML message is going over to SRM from XI , but getting an application error (Exception)  when checking in sxmb_moni on the SRM side. So we are not able to see the PR in the Sourcing cockpit in SRM.
    error as below
    <SAP:Category>Application</SAP:Category>  
    <SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText />  
    <SAP:ApplicationFaultMessage namespace="http://sap.com/xi/SRM/SE/Global">ExchangeFaultData</SAP:ApplicationFaultMessage>  
    <SAP:Stack>Application has thrown an exception</SAP:Stack>  
    <SAP:Retry>M</SAP:Retry>  
    </SAP:Error>

    Hi Vijay,
    Can you tell us the interface name?
    If it is stuck in FEH (Application Error) in SRM then you can check the detail error by going into tcode /n/sappo/ppo2.
    You need to enter the Business Process, Order Assignment and Mode Of Postprocessing Order and then execute.
    It will show you all the messages stuck in application error for that interface and if you double click on any one of them you will get to see the detailed error with options to Discard, Repeat etc.
    Let us know if this helps you.
    Regards,
    Mayur

  • Apply conditional formatting when a report is exported to CSV format

    Hello
    OBIEE dasboard has the option to export the report data to CSV format.
    But the problem is that on some columns of the report, it uses various different types of conditional formatting that tells, what to display when data is equal to one of those edge cases. So hence the report on the dashboard page shows accordingly which is fine.
    But when the report is exported to CSV format, no conditional formatting is applied and all the raw data is shown without any formatting.
    Is there any way to make sure that the conditional formatting is applied even in the data exported to CSV format.
    thanks

    CSV is supposed to be a data dump .. i dont think you can have formatting saved when u download csv file.. try downloading it to excel and changing it to CSV

  • I am getting an error message when i try to export "Not enough memory" what do it do?

    I am getting an error message when i try to export "Not enough memory" what do it do?

    Your 400GB is not what I was speaking of. I was not speaking of disk space. I was speaking of memory.
    The memory in your computer needs to be 8GB or more, and you must have a 64 bit operating system (which can still happen even if your computer is less than 12 months old). What operating system do you have? Is it 32bits or 64bits?

  • Error 0xd0840001 when printing

    My wife has a HP Office Jet 5610 All-In-One. She's hooked up using usb to a Dell 32-bit machine running Vista Ultimate.
    On a regular basis, she gets the message "Error 0xd0840001" when printing a document. Often, the majority fo the first page has already printed.
    It can be from Word, Excel or Firefox. The only solution I've noticed it to run net stop spooler / net start spooler. At this point the print job restarts and prints the entire document.
    I've googled and only found this issue listed on an Ubuntu forum. (There's no solution listed.) I haven't upgraded her from Windows to Linux yet, so I don't see that as the issue.
    Ideas?
    This question was solved.
    View Solution.

    I fixed this by upgrading from Windows 7 to Ubuntu 9.1.
    Works fine now.

  • WPF report viewer throws exception when print button clicked when hosted on winform

    When hosted in a winform app the wpf report viewer control throws an exception when the print button is clicked.
    All the other buttons appear to work, any ideas on a work round?
    I have created a sample VS 2013 solution that shows this issue
    As I can't even attach a renamed zip file it can be downloaded directly from here: http://1drv.ms/QxUrZo
    The reason I am attempting to use this control is that the standard reportviewer causes occasional errors in citrix enviroments causing the citrix session to lock up.  This appears to be a relatively common issue and the usual issue of both sides (citrix & crystal) blaming the other for the cause and me the developer needs to find a work round.
    I've 'bodged' in an additional button on our app to export a loaded report to file as pdf then print it but this should not be the permanent resolution.
    BTW glad to see the x64 dynamic parameter issue has been fixed at last, think I reported this over two years ago and again ended up having to work round it.

    Hi Ludek
    A sample project that loads a simple report is available from here: http://1drv.ms/QxUrZo
    The project is called WPFReportHost
    This loads a simple report when run then you can test the basic functionality of the viewer and all will work until you press the print button and then you get the application crash.
    Have to improve my search technique when I googled for other people having this issue I didnt' find the link.
    We've noticed the WPF viewer loads considerably faster and has better functionality than the winform viewer and hope that it might solve the citrix preview issue (yet to be tested).
    So as a work round we've hidden the default print button added our own and call the report print directly as per below:
    using (PrintDialog dialog = new PrintDialog())           
         dialog.AllowCurrentPage = true;
         dialog.AllowSelection = true;    
         dialog.AllowSomePages = true;
         dialog.AllowPrintToFile = true;
         if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)                     {
              reportDocument.PrintToPrinter(                         
                   dialog.PrinterSettings,                         
                   new System.Drawing.Printing.PageSettings(dialog.PrinterSettings);
                    false);                   
    Would be nice to have a fix

  • Error when printing reports from forms in Linux

    Im having an error when printing a report from a form. The problem is, only with certain forms. when printing a report (to PDF) from other forms, it prints with no problems. The oracle is 10g AS and operating system is Redhat AS 3.
    The error, in the log from the reports server is:
    [2004/9/7 7:14:59:599] Exception 62204 (): Internal error writing the image BandCombine: a row of the matrix does not have the correct number o
    f entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=62204,
    java.lang.String errorString="Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, sh
    ould be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..",
    java.lang.String moduleName="REP"
    at oracle.reports.utility.Utility.newRWException(Utility.java:604)
    at oracle.reports.toolkit.image.writer.JPEGImageWriter.writeImage(JPEGImageWriter.java:130)
    at oracle.reports.toolkit.image.ImageManager.writeJPEGImage(ImageManager.java:524)
    at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:353)
    at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    [2004/9/7 7:14:59:599] Error 50103 (C Engine): 19:14:59 ERR REP-0069: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.get
    ExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    [2004/9/7 7:14:59:600] Error 50103 (C Engine): Error Writing Image, ID 2
    [2004/9/7 7:14:59:601] Error 50103 (rwtic:rwticga): Look up for image attributes for image 2
    [2004/9/7 7:14:59:602] Error 50103 (rwtic:rwticgi): Looking up for Image, ID 2 in the cache
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Loading the Image into the cache
    [2004/9/7 7:14:59:603] Debug 50103 (ImageManager:getImageSource): Retrieving the Image object for ID : 2
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Image successfully loaded into the cache
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageHeight ): Start Height : 155
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageWidth ): Start : width : 138
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageColorSpace ): Start
    [2004/9/7 7:14:59:608] Exception 50125 (): Caught exception: java.lang.NullPointerException
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=50125,
    If anyone could help me, is important !
    Thx in advance
    Bruno Santos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Raise a TAR I reckon

  • Error when print report from apex using apex listener 2

    Hi
    Apex 4.2
    I want print report to pdf from apex using apex listener 2.
    The print server 'Oracle APEX listener' has been defined at the instance-level.
    ACL has been configured.
    I attempt to download a report in PDF mode, it appears that it downloads,
    but when I go to open it up I get an error that the file is of the wrong type or possibly corrupt.
    Upon opening the file in Text editor, there is an error as below
    %PDF-1.4
    1 瀛楄妭鐨?UTF-8 搴忓垪鐨勫瓧鑺?1 鏃犳晥銆?

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • When sub-reports are exported or printed, then the complete report gets exported/printed instead of only the content of the sub-report.

    I have got several (6-7) subreports in the m ain report. Several times client is interested in printing/exporting data of sub-report only for which when they try to export/print sub-report, entire report is getting export and print.
    We have upgraded application from crystal 8.5 to crystal 2013 RAS API now. Earlier with crystal 8.5, client was able to export/print only sub-report.
    It will be great if somebody can share his/her expertise with us.

    Hi,
    As per my knowledge, currently there are no APIs available to export only subreport.
    See the RAS SDK dev guide and API Reference.
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
    Try the SAP Idea Place and log an enhancement request.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • How to pop up error message when printing invoice / delivery note

    i have a problem that when I'm going to print the invoice (VF03), i have to check the field displayed e.g. port of loading, final destination should not be empty.If both are empty, when user is ready to print, then alert message is displayed (e.g. Please return to the invoice to fill in the port of loading / final destination) and is not allowed to print it out
    i'm using Zxxxxx program (including the subroutine)  and SAPScript form Zxxxxxx ,in the form, i use "PERFORM XXX IN PROGRAM ZXXXX" to call the parameter,so how can I do the alert message and stop the printing process and Do i write a checking subroutine in the program and perform that subroutine , so that when that required fields are empty, then show alert when printing?
    PLs advise

    Hi Sky,
    i wont suggest you to give a pop up as if you try and execute the invoice in background it would cause termination.
    Standard way of doing it is by updating nast entries. You can refer below mentioned pseudo code. You can also refer to any standard driver program & form attached to a output type for  more code.
    The below code would show your output condition in error status if your condition fails.
    **Do you validations in the print program and  check for return code.
      IF SY-SUBRC NE 0.
        PERFORM PROTOCOL_UPDATE.
        RETCODE = 1.
        EXIT.
      ENDIF.
          FORM PROTOCOL_UPDATE                                          *
          The messages are collected for the processing protocol.       *
    FORM PROTOCOL_UPDATE.
      CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
           EXPORTING
                MSG_ARBGB = SYST-MSGID
                MSG_NR    = SYST-MSGNO
                MSG_TY    = SYST-MSGTY
                MSG_V1    = SYST-MSGV1
                MSG_V2    = SYST-MSGV2
                MSG_V3    = SYST-MSGV3
                MSG_V4    = SYST-MSGV4
           EXCEPTIONS
                OTHERS    = 1.
    ENDFORM.
    Hope this Helps you.
    Sumit

  • Strange error message when printing to PDF

    I am surprised that no one else has reported this issue. Searching the net, I found only one other mention of it. Using Adobe Acrobat Professional 8.1.2, when printing a document from any application using the Adobe PDF printer, the document will print correctly; however, the printer icon with a question mark will appear in the system tray and the error message "This document failed to print" will appear. When I open the Adobe PDF printer, the document is there with the status "Error - Printing".
    I can successfully delete the document (with error), though the actual .pdf document is created just fine; it is just returning an error and holding the document after every print. I have tried deleting the Adobe PDF printer, reinstalling Acrobat (both using a repair installation as well as uninstalling and reinstalling) all with the same results.
    There is nothing being logged into the system or application logs, either. I have seen this happen with two OSs at work, Vista Home Premium and WinXP SP3. Can someone guide me to a solution?

    Well I can give you what I did to get around the problem.  I am running Adobe X pro on windows 7.
    1.  The print job in queue, cancel it so that it is deleted.  You now should have no jobs pending.
    2.  Go to Control Panel\Hardware and Sound\Devices and Printers(Win7) or just the printer and devices for your OS.  Yes this must be done with Admin privilages.
    3.  Go to Printer Properties for the Adobe PDF printer.
    4.  Select the ports tab.  Mine was on Com3.
    5.  Select Add a Port and call it Adobe Printer or something.
    6.  Select the check box and select apply.
    You should now print with no errors.
    -G
    Yes I am aware this has been a year, but this has happened over several versions.

Maybe you are looking for

  • From IDE to SATA

    I am looking to upgrade from my old hard drives (a 20gb ultra66 and a 60 gb ultra133) to a new SATA setup. I have a few questions about setups on my mobo. I was looking at getting the Western Digital Raptor 74GB 10,000RPM SATA Hard Drive(s)... my que

  • I purchased a wireless keyboard for my iPad a week ago and now the keypad doesn't pop up when I want to type anything.

    I purchased a wireless keyboard for my iPad a week ago and now the keypad doesn't pop up when I want to type anything.

  • HELP!!! Computer Crashes, iTunes Problem...

    My hard drive on my computer had failed and everything on it was lost, including my library for iTunes. I had to have the hard drive replaced. The problem I am having is I want to add my songs from my iPod into the new iTunes library. When I connect

  • Cacophony of problems

    Not entirely sure what tpe of iPod I have, it's not got photos or videos or anything, but is largish and white and has a clicky wheel, purchased August 2005. Tried to turn it on, nothing, just the apple logo then unhappy ipod face if I try to press a

  • Can two Portal install share the same Ap Server?

    Portal 3.0.9 Solaris 8 Hi All, Is it possible to install two versions of portal on separate machines and configure it to share the same application server where one of the Portals is installed?