Invalid Export Options RAS SDKs

Hi All,
As given in post Re: XML Export - Cannot select format CR2008 SP2 We are using RAS sdks and given sample code but still we are gettting same error i.e. Invalid Export Options.
Is this also scheduled to be fixed in SP3.
Thanks,
Stanly

Hi, Stanly;
The RAS code given in that post should work. Which service pack level and version of Crystal Reports are you using?
Can you show the code you are using?
Regards,
Jonathan

Similar Messages

  • Invalid Export Options error

    Post Author: Kit
    CA Forum: .NET
    Why would an export to html, which has for many months  performed correctly, suddenly start producing the "Invalid export options" error?Our application is a Microsoft Dynamics GP third party add-on, developed in Dexterity ( The MS Dynamics GP native development tool) and using a home-grown .NET component to export reports to HTML.In our scenario we have a production environment where three reports are produced each evening, exported to HTML, and then published via FTP. Crystal 10 is installed on the server. This has worked well for a long time but lately one or more of the three  reports have failed each time, with a "Invalid export options" error.The failure is not consistent -  for example one time the first two reports were successful, but the third failed, but the next time the first two both failed, whereas the third was succesful.Ou first thought was that the error could be caused by a bad report setup within the Dexterity side of the application, however we have investigated this possibility and debugged the application and can find no likely cause there.Here's the error;CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Invalid export options.   at CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id)   at CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id)   at CrystalDecisions.CrystalReports.Engine.HTMLExporter.GetPage(Boolean bSeparatePages, Boolean bDHTML, Int32 startPage, Int32 endPage)   at CrystalDecisions.CrystalReports.Engine.HTMLExporter.Export()   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)   at KIT.Crystal.RunReport()" KIT.Crystal.RunReport is from our component, and contains the following code                    rptDoc = SetupRptDoc();                    // Set the options for saving the exported file to disk                    destOpts = new DiskFileDestinationOptions();                    destOpts.DiskFileName = outputFilename;                    expOpts = new ExportOptions();                    expOpts.DestinationOptions = destOpts;                    // Set the exporting information                    expOpts.ExportDestinationType = ExportDestinationType.DiskFile;                    switch (exportFormat)                    {                        case ExportFormatEnum.CRS:                            expOpts.ExportFormatType = ExportFormatType.CrystalReport;                            break;                        case ExportFormatEnum.DOC:                            expOpts.ExportFormatType = ExportFormatType.WordForWindows;                            break;                        case ExportFormatEnum.HTML:                            htmlOpts = ExportOptions.CreateHTMLFormatOptions();                            htmlOpts.HTMLBaseFolderName = new FileInfo(_outputFilename).DirectoryName;                            htmlOpts.HTMLFileName = new FileInfo(_outputFilename).Name;                            htmlOpts.HTMLEnableSeparatedPages = false;                            htmlOpts.HTMLHasPageNavigator = false;                            expOpts.ExportFormatOptions = htmlOpts;                            expOpts.ExportFormatType = ExportFormatType.HTML40;                            break;                        case ExportFormatEnum.RTF:                            expOpts.ExportFormatType = ExportFormatType.RichText;                            break;                        case ExportFormatEnum.XLS:                            expOpts.ExportFormatType = ExportFormatType.Excel;                            break;                        case ExportFormatEnum.PDF:                        default:                            expOpts.ExportFormatType = ExportFormatType.PortableDocFormat;                            break;                    }                    //Export the report                    rptDoc.Export(expOpts);

    Post Author: Kit
    CA Forum: .NET
    Why would an export to html, which has for many months  performed correctly, suddenly start producing the "Invalid export options" error?Our application is a Microsoft Dynamics GP third party add-on, developed in Dexterity ( The MS Dynamics GP native development tool) and using a home-grown .NET component to export reports to HTML.In our scenario we have a production environment where three reports are produced each evening, exported to HTML, and then published via FTP. Crystal 10 is installed on the server. This has worked well for a long time but lately one or more of the three  reports have failed each time, with a "Invalid export options" error.The failure is not consistent -  for example one time the first two reports were successful, but the third failed, but the next time the first two both failed, whereas the third was succesful.Ou first thought was that the error could be caused by a bad report setup within the Dexterity side of the application, however we have investigated this possibility and debugged the application and can find no likely cause there.Here's the error;CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Invalid export options.   at CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id)   at CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id)   at CrystalDecisions.CrystalReports.Engine.HTMLExporter.GetPage(Boolean bSeparatePages, Boolean bDHTML, Int32 startPage, Int32 endPage)   at CrystalDecisions.CrystalReports.Engine.HTMLExporter.Export()   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)   at KIT.Crystal.RunReport()" KIT.Crystal.RunReport is from our component, and contains the following code                    rptDoc = SetupRptDoc();                    // Set the options for saving the exported file to disk                    destOpts = new DiskFileDestinationOptions();                    destOpts.DiskFileName = outputFilename;                    expOpts = new ExportOptions();                    expOpts.DestinationOptions = destOpts;                    // Set the exporting information                    expOpts.ExportDestinationType = ExportDestinationType.DiskFile;                    switch (exportFormat)                    {                        case ExportFormatEnum.CRS:                            expOpts.ExportFormatType = ExportFormatType.CrystalReport;                            break;                        case ExportFormatEnum.DOC:                            expOpts.ExportFormatType = ExportFormatType.WordForWindows;                            break;                        case ExportFormatEnum.HTML:                            htmlOpts = ExportOptions.CreateHTMLFormatOptions();                            htmlOpts.HTMLBaseFolderName = new FileInfo(_outputFilename).DirectoryName;                            htmlOpts.HTMLFileName = new FileInfo(_outputFilename).Name;                            htmlOpts.HTMLEnableSeparatedPages = false;                            htmlOpts.HTMLHasPageNavigator = false;                            expOpts.ExportFormatOptions = htmlOpts;                            expOpts.ExportFormatType = ExportFormatType.HTML40;                            break;                        case ExportFormatEnum.RTF:                            expOpts.ExportFormatType = ExportFormatType.RichText;                            break;                        case ExportFormatEnum.XLS:                            expOpts.ExportFormatType = ExportFormatType.Excel;                            break;                        case ExportFormatEnum.PDF:                        default:                            expOpts.ExportFormatType = ExportFormatType.PortableDocFormat;                            break;                    }                    //Export the report                    rptDoc.Export(expOpts);

  • HTML40 - Invalid Export Options

    We have moved our .net application from Crystal 10 to Crystal 11.5. The version of the dlls is now 11.5.3700.0.
    We now get an error 'invalid export option'.
    Our reports export to HTML40 format.
    If I change to HTML32 it works ok.
    Any help would be much appreciated.

    Problem does not occur in the designer, only at run-time.
    We are using c# and .net 2.0.
    Stack trace is below, seems to be error in CrystalDecisions.CrystalReports.Engine.HTMLExporter.GetPage
    at CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id)
       at CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id)
       at CrystalDecisions.CrystalReports.Engine.HTMLExporter.GetPage(Boolean bSeparatePages, Boolean bDHTML, Int32 startPage, Int32 endPage)
       at CrystalDecisions.CrystalReports.Engine.HTMLExporter.Export()
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
       at CCS.Service.ReportServer.ReportServer.<>c__DisplayClassd.<generateCrystalReport>b__5() in D:\CSS\CCSEnterprise\Architecture\CCSServiceReportServer\ReportServer.cs:line 1391
       at CCS.Service.ReportServer.ReportServer.executeLoggedCode(ExecuteLoggedCode executionDelegate, String activity, ReportQueue context) in D:\CSS\CCSEnterprise\Architecture\CCSServiceReportServer\ReportServer.cs:line 1168
    Our code is below, If we use ExportFormatType.HTML32 it works ok...........
    ExportOptions html40ExportOptions = new ExportOptions();
    html40ExportOptions.ExportFormatType = ExportFormatType.HTML40;
    //html40ExportOptions.ExportFormatType = ExportFormatType.HTML32;
    // Destination options
    html40ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;                           
    CrystalDecisions.Shared.DiskFileDestinationOptions html40DestinationOptions =
    ExportOptions.CreateDiskFileDestinationOptions();
    html40DestinationOptions.DiskFileName = exportedReportName;
    html40ExportOptions.ExportDestinationOptions = html40DestinationOptions;
    // Format options
    HTMLFormatOptions html40FormatOptions = new HTMLFormatOptions();                           
    html40FormatOptions.HTMLBaseFolderName = Path.GetDirectoryName(exportedReportName);
    html40FormatOptions.HTMLFileName = Path.GetFileName(exportedReportName);
    html40FormatOptions.HTMLEnableSeparatedPages = true;
    html40FormatOptions.HTMLHasPageNavigator = true;
    html40FormatOptions.FirstPageNumber = 1;
    html40ExportOptions.ExportFormatOptions = html40FormatOptions;
    // Export the report
    theReport.Export(html40ExportOptions);
    Edited by: john brister on Dec 4, 2008 3:45 PM

  • Using MAPI Outlook 2007 on Windows 7 Errors Invalid export options

    O.S : Windows 7
    Email Client: Outlook 2007
    Crystal Reports 2008 Dev Environment
    Use MAPI ExportDestinationType and invoke Export() returns Invalid export options
                     pRpt.ExportOptions.ExportDestinationOptions = MailOptions
                     pRpt.ExportOptions.ExportFormatOptions = CrystalDecisions.Shared.ExportOptions.CreatePdfFormatOptions()
                     pRpt.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
                     pRpt.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.MicrosoftMail
                     pRpt.Export()
    Seems to be interface compatibility issue between Crystal Export API and Outlook 2007 MAPI API
    This thread explains more
    Windows 7 - Exporting to Mapi problem
    Edited by: Aumil Manzoor on Dec 16, 2009 1:24 AM

    Essentially you've posted the same issue twice. Once in this thread and once here;
    Windows 7 - Exporting to Mapi problem
    One post is good enough. Let's continue on the other thread and close this one.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • "Invalid Export Option" Crystal 2008 SP3, Windows 7, Outlook 2010 (32 bit)

    We have one client reporting that they get "Invalid Export Option" whenever they try to email a report.  We used the supplied code with VS 2008 to implement the ability to view, print, export, and email reports.  Our Windows 7 computers all work without issue, except for the one with 64 bit Outlook (which is a known issue), so I'm guessing this is security/SPAM protection at the client, but it doesn't affect any of their XP computers. 
    Any suggestions would be greatly appreciated

    Thank you for the info, much better.
    Have them download the trial version of CR 2008, they will have to do a Repair install of your app and CR runtime when they uninstall the trial version. Then see if they can export from the Designer.
    Or if you prefer they not have access to the designer then use ProcessMonitor and follow along as they try to export, look for access Denied entries. I assume all other export formats work? Most have a pop up also to see if it's a CR issue.
    There are few options for security settings in Outlook itself to not prompt but like you say it appears they are not even getting that far. Could be the pop up is behind your app, I've seen this happen before.
    I did a google search and found quite a few posts on this issue. You may want to search also to see if something will help your user to get around this issue.
    Possibly adding your app EXE to the trusted list in their Anti-virus software may help also. And if you haven't done so look in the various logs in their AV and Firewall and even Event Viewer to see if it captures and access denied errors.
    Thanks
    Don

  • RAS SDK exporting issue

    Hi everyone,
    We are using RAS SDK to export report from crystal reports server 2008 (version 12).
    The report is designed in development environment, and tested based on data from development database (Oracle). The report is saved without storing saved data.
    In the development environment, we are able to export reports without any problem. We can also run the report via CMC console.
    In the production environment, on the other hand, things went wrong.
    We modified database login configuration of the report to point to production database in CMC console (use custom db login option). The report can be viewed smoothly on CMC.
    However, when we try to retrieve data from RAS SDK using printoutcontroller.export, the following exception is thrown.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Database logon failed.---- Error code:-2147217393 Error code name:dbLogonFailed
    We tried to verify the database connection info from ReportClientDocument's database controller, but found out the following method always return null:
    oReportClientDocument.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0).getPassword()
    The other mothods:
    oReportClientDocument.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0).getUserName()
    do return the correct custom values (database server name, and username).
    After series of testing, we suspect that the custom database password retrieved by SDK does not get updated, hence dblogin error occurs when RAS SDK tries to make connection.
    We are aware that we can set db login information by using databasecontroller methods (login, replaceconnection..etc), but we really don't like the idea of hard coding the database username and password in our code. If CMC allows us to set custom database info, we shouldn't need to set them again in the code we suppose.
    Any suggestion, hint is very much appreciated. we notice that this issue has been raised several times in this forum, with no real solution provided. Hopefully it can get solved this time.
    Regards,
    mlie

    Can you try changing the order of these two lines of code:
    printOutputController.modifyUserPaperSize(10500,15000);
    printOutputController.modifyPrintOptions(newPrintOptions);
    You should modify the PrintOptions before changing the paper size as I expect that your report was originally designed to be portrait, and you are setting the paper size to something that would no longer be a valid portrait size.  Your modifications to the PrintOptions changes the report to be Landscape, so we would want to make that change first.

  • Excel Export Options Window

    I am using CR Basic with VB2008. Is there a way to display the Excel Export Options dialog when the user selects to export a report to Excel? I am wanting to do this through code, but is it even possible? This is the same dialog that pops up when you select to export a report to excel from within the IDE.
    Thanks,
      Steve

    The below, are the only exposed export option APIs:
    Private Sub ExportReportInExcel(ByVal reportDocument As ReportDocument, _
          ByVal fromPage As Integer, ByVal toPage As Integer)
          Dim myExportOpts As New ExportOptions
          myExportOpts.ExportFormatType = ExportFormatType.Excel
          Dim myExportFormatOptions As ExcelFormatOptions = _
          ExportOptions.CreateExcelFormatOptions()
          myExportFormatOptions.ConvertDateValuesToString = True
          myExportFormatOptions.ExcelAreaGroupNumber = 1
          myExportFormatOptions.ExcelAreaType = AreaSectionKind.Detail
          myExportFormatOptions.ExcelConstantColumnWidth = 9.5
          myExportFormatOptions.ExcelTabHasColumnHeadings = True
          myExportFormatOptions.ExcelUseConstantColumnWidth = True
          myExportFormatOptions.ExportPageBreaksForEachPage = True
          myExportFormatOptions.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage
          myExportFormatOptions.FirstPageNumber = fromPage
          myExportFormatOptions.LastPageNumber = toPage
          myExportFormatOptions.ShowGridLines = True
          myExportFormatOptions.UsePageRange = True
          myExportOpts.ExportFormatOptions = myExportFormatOptions
          reportDocument.Export(myExportOpts)
        End Sub
    The sample app vbnet_win_export.zip availbale from [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples] may help.
    The InProc RAS has the property MaintainColumnAlignment in addition to what the CR SDK has which is probably the colsest to "Maintain relative object position"
    [This|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e041f772-9d3b-2c10-a790-e3ea083a3dce] is a RAS excel export sample app.
    Developer help file is [here|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm].
    API reference is [here|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    The above are for Crystal Reports. RAS is at the following links:
    http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_net_dg_12_en.chm
    http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_net_apiRef_12_en.chm
    Ludek

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • How to create a subreport link programmaticly using java RAS sdk

    Hi,
    I want to create subreport link for couple of main report parameters programmaticly using RAS sdk.
    Main report has Param1 and Param2. I need to link these parameters to sub-report which doesn't have any parameters, so I can pass the parameters value just once when running the report and consume it's value in the sub-report.
    Below is the code I tried but I get "Invalid field name"error when I try to save the main report.
    ISubreportClientDocument subReportDoc = subReportCntrl
                      .getSubreport(subReports.getString(i));
    SubreportLinks srLinks = subReportCntrl.getSubreportLinks(subReports.getString(i));
    SubreportLink subRptLink1 = new SubreportLink();
    Fields paramFields = reportClientDoc.getDataDefinition().getParameterFields();
    subRptLink1.setMainReportFieldName(paramFields.get(0).toString());
    subRptLink1.setSubreportFieldName(paramFields.get(0).toString());
    SubreportLink subRptLink2 = new SubreportLink();
    subRptLink2.setMainReportFieldName(paramFields.get(1).toString());
    subRptLink2.setSubreportFieldName(paramFields.get(1).toString());
    srLinks.add(subRptLink1);
    srLinks.add(subRptLink2);
    subReportCntrl.setSubreportLinks(subReports.getString(i), srLinks);
    Thanks,

    Hi,
    I want to create subreport link for couple of main report parameters programmaticly using RAS sdk.
    Main report has Param1 and Param2. I need to link these parameters to sub-report which doesn't have any parameters, so I can pass the parameters value just once when running the report and consume it's value in the sub-report.
    Below is the code I tried but I get "Invalid field name"error when I try to save the main report.
    ISubreportClientDocument subReportDoc = subReportCntrl
                      .getSubreport(subReports.getString(i));
    SubreportLinks srLinks = subReportCntrl.getSubreportLinks(subReports.getString(i));
    SubreportLink subRptLink1 = new SubreportLink();
    Fields paramFields = reportClientDoc.getDataDefinition().getParameterFields();
    subRptLink1.setMainReportFieldName(paramFields.get(0).toString());
    subRptLink1.setSubreportFieldName(paramFields.get(0).toString());
    SubreportLink subRptLink2 = new SubreportLink();
    subRptLink2.setMainReportFieldName(paramFields.get(1).toString());
    subRptLink2.setSubreportFieldName(paramFields.get(1).toString());
    srLinks.add(subRptLink1);
    srLinks.add(subRptLink2);
    subReportCntrl.setSubreportLinks(subReports.getString(i), srLinks);
    Thanks,

  • Apex 3.1.2.00.02 creates invalid export file (that gives ORA-20001 error)

    Hi
    I want to let you know, that sometimes APEX 3.1.2.00.0 creates invalid export file.
    Older apex 3.0 created correct file.
    For example: our application has page button, where "Optional URL Redirect" is:
    Page: &APP_PAGE_ID.
    Request: FLOW_XMLP_OUTPUT_R11531800061044170_et
    If we export application into file f110.sql and try to import it to the same workspace on the same server, we get error:
    {color:#0000ff}ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 28, column 111: PLS-00103: Encountered the symbol "_" when expecting one of the following: ) , * &amp; | = - + &lt; / &gt; at in is mod remainder not rem =&gt; .. &lt;an exponent (**)&gt; &lt;&gt; or != or ~= &gt;= &lt;= &lt;&gt; and or like LIKE2_ LIKE4_ LIKEC_ as between from using || multiset member SUBMULTISET_ The symbol &a
    {color}In exported f110.sql file the invalid section is:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R'||to_char({color}{color:#0000ff}{color:#ff0000}*10255206661122183_et*{color}+wwv_flow_api.g_id_offset)||':&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    If we exported the same application in apex 3.0, this section was correct:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R*10255206661122183_et*:&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    Best Regards,
    T&otilde;nu

    Thanks for pointing that out. We'll fix it. It does appear though, that in 3.0, the offset would not be added to the number part of the request value, so if you installed the application as a different application ID or into a different workspace, the request would have failed.
    Scott

  • How good is the java Ras Sdk in Business objects XI?

    I have programmed some  reports from scratch by using the java ras sdk.
    Somehow I have the feeling that new features of XI like dynamic image location, or
    running totals aren't so well supported as for example through the Crystal report Designer.
    Do others also think that  Business objects is being a bit negligent on this Api?
    Maybe they do not consider the Api as important anymore because most people will be using there web based out of the box jsp components?

    Normally you should run your CR reports in the INfoView. You can start a report either by double clicking on it or by selecting View in the context menu. Still in order to fetch data you have to press the Refresh button in the CR viewer window (in the InfoView).
    In the CMC I assume that you are using the Run now option in the context menu. Please note that this will just schedule your report immediatelly. hen the report is scheduled a new instance is created hich is available in the History of the report. In order to see a report in the CMC select again View in the context menu and you can again fetch data by pressing the Refresh button.
    Regards,
    Stratos

  • Unable to use RAS SDK for server-side printing for XI 3.1

    Hi all,
    I am using RAS SDK for server-side printing.  Here are my codes:
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    IEnterpriseSession enterpriseSession = sessionMgr.logon("Administrator", "", "cdi5boe", "secEnterprise");
    IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
    //out.println("Current User is = " + enterpriseSession.getUserInfo().getUserName());
    //out.println ("<br>");
    IInfoObjects infoObjects = iStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_Kind='CrystalReport' AND SI_NAME = 'Sales Print'");
    IInfoObject infoObject = (IInfoObject)infoObjects.get(0);    
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");
    ReportClientDocument rcd = new ReportClientDocument();
    rcd = reportAppFactory.openDocument(infoObject,0, java.util.Locale.US);
    //Create print options to use when printing.
    PrintReportOptions printOptions = new PrintReportOptions();
    printOptions.setPrinterName("
    cdi5boe
    HPLaserJ");
    printOptions.setJobTitle("Test Printer Job");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //Print report.
    rcd.getPrintOutputController().printReport(printOptions);
    When I run the report, I got the following errors:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKPrinterException: com.businessobjects.crystalreports.printer.bean.ReportPrinter---- Error code:-2147215357 Error code name:internal
    I consult the Diamond Technical Community and I found the issue related to printer name:
    https://boc.sdn.sap.com/node/498
    However, I did check the printer name, it is accessible via Windows Explorer.
    Anyone knows how to resolve this?
    Regards,
    Derek

    It doesn't appear to be listed as a dependency in the developer docs, but would you try putting the ReportPrinter.jar in your RAS app?
    Sincerely,
    Ted Ueda

  • How to set Report Location by RAS SDK without configurating CCM in CR Serve

    Dear all
    When I use the RAS SDK with CR Server Embedded 2008, I found that when I use the Java code to open a report like below:
    String localRptPath = "rassdk://C:
    oem.rpt";
    reportClientDoc.open(localRptPath,OpenReportOptions._openAsReadOnly);
    But I must set the Report Directory from the default value(a specified location after CRSE installation)to " * " in CCM of the RAS Server like below:
    Right click the RAS Server -> Choose "Propertites" -> Choose "Parameter" -> Change "Option Type" to "Server" -> set the Report Directory from the default value to " * "
    Then I can open the report, otherwise I must put the report under the Default Location of the Report Directory.
    So customer need a way which can set the report location directly in RAS SDK and without configurating the Report Direcroty in CCM?
    Thanks in advance.
    David

    Dear all
    I encounter some strange situation when editing the "Report Directory":
    In my Vmware, there are 2 "ReportDirectoryPath" under:
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Instances\bouser.RAS\Server\LocalConnectionMgr
    and
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Server\LocalConnectionMgr
    I can only edit the "ReportDirectoryPath" in the former location and then take effectively in the CCM. And if I modify the "ReportDirectoryPath" in the latter location, it can not take effect.
    But in customer machine, customer install CR2008 and CRASE2008, and customer can edit the value in the registry, but after customer uninstall the CR2008 and CRSE2008 then reinstall CRSE2008 only, the registry structure is different, there is not HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Instances\bouser.RAS\, so customer can only edit the "ReportDirectoryPath" under:
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Server\LocalConnectionMgr
    And it can work effectively.
    And I can not rebuild this.
    So I found that when there are 2 location of the "ReportDirectoryPath", I can only modify it under:
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Instances\bouser.RAS\Server\LocalConnectionMgr
    So my question is:
    Why the registry structure is different after reinstall the CRSE2008?
    Because customer need the firm registry location to modify it.

  • Migrate from Crystal Report Server XI R2 to new Eclipse RAS SDK Question

    Hi,
    I am migrating Crystal Report Server XI R2 RAS SDK to Eclipse RAS SDK which seems to be quite easy.
    I have the following old code which basicly programmaticly creates a Report from scratch adds a Table and then
    populates the Report with a Pojo Collection.
    <br> <br>
    Now before I would have : <br>
    <br>
    Table oTable = new Table(); <br>
    oTable.setName("reportTable"); <br>
    pbConnAttributes.putStringValue("QE_DatabaseType", "Java Beans Connectivity"); <br>
    pbConnAttributes.putStringValue(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_javabeans.dll"); <br>
    PropertyBag pbLogonProperties = new PropertyBag(); <br>
    pbLogonProperties.putStringValue("Java Bean Classes", className); <br>
    pbLogonProperties.putStringValue("SSOKEY", ""); <br>
    pbConnAttributes.put("QE_LogonProperties", pbLogonProperties); <br>
      pbConnAttributes.putBooleanValue(PropertyBagHelper.CONNINFO_SSO_ENABLED, false); <br>
    oTable.getConnectionInfo().setKind(ConnectionInfoKind.CRQE); <br>
    oTable.getConnectionInfo().setUserName(""); <br>
      oTable.getConnectionInfo().setPassword(null); <br>
      oTable.getConnectionInfo().setAttributes(pbConnAttributes); <br>
    //following statement throws Exception <br>
    doc.getDatabaseController().addTable(oTable, null); <br>
    <br>
    getDatabaseController().setDataSource(pojoCollection, pojoClass.class,"reportTable", "reportTable");
    <br>
    <br>
    Now wenn using the c <br>lient eclipse RAS SDK which pbConnAttributes should I use? <br>
    No matter which ones I choose I get a Bad Driver Exception or Named Exception. <br>
    Can anybody help?
    Edited by: snake-john99 on Aug 11, 2010 10:35 AM
    Edited by: snake-john99 on Aug 11, 2010 10:39 AM

    Hi Mikael,
    Since you're already on CR Server XI R2, you can use the Upgrade Management Tool to migrate all the content to CR Server 2013.
    Anwers to your questions:
    1) Yes, the Upgrade Management Tool does support this kind of migration
    2) It does seem that the UMT allows you to move all report instances as well as the scheduled jobs over to the new server
    3) I've always had issues with Business Views when using Import Wizard however I'm not sure whether they work well with the new UMT. In any case, I always prefer to export the LOVs and BVs from within the Business View Manager to a .xml file and then import them in the higher version of the Server, again, from within the Business View Manager.
    -Abhilash

  • "Invalid export DLL or export format" with Crystal Reports 2008

    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    - Exporting a Crystal Report to Excel or RTF format
    - .NET application using the Crystal Reports 2008 runtime (version 12.0)
    - error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    - Server Operating System
    - Version of the .NET Framework
    - How did you deploy?
    - If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    - What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    - How many libpng10.dll files are on your system? List all instances.
    - Any additional comments
    What We Know
    - The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    - Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    - Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables. Note the system must be restarted after editing the path variable.
    - This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    - libpng10.dll has changed versions from SP0 to SP1. In SP0 it was 1.0.30.0 and in SP1 it is 1.0.30.1
    libpng10.dll dependencies
    The dependencies have also been updated for libpng10.dll in service pack 1. This may have something to do with the export issue. If you've deployed your application with the latest merge modules or setup package for service pack 1 you'll want to make sure you have version 1.0.30.1 of libpng10.dll.
    Version 1.0.30.0
    - zlib.dll
    - msvcr71.dll
    - kernel32.dll
    Version 1.0.30.1
    - boezlib.dll
    - msvcr80.dll
    - kernel32.dll
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.
    Edited by: David Hilton on Jan 14, 2009 10:07 AM

    Our company has also been experiencing this issue with deployed versions of our software, and during my examination of the error I have made the following discoveries:
    For us the error has only been reproduced on Windows 2003 running Citrix
    The error does not occur on Windows XP, Windows 2003 or Vista without Citrix
    For installation of our application we use the CRRuntime_12_0.msm merge module (version 12.0.0.683, file size 46790KB)
    As mentioned in the first post this error is related to the files crxf_rtf.dll and cfxf_xls.dll being unable to locate its reference to the file libpng10.dll during load.
    I have run the application with ProcMon (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) attached on both environments that work correctly and that does not work and iIve made these observations:
    During load of dlls Windows searches for references in the following orders (see http://msdn.microsoft.com/en-us/library/ms682586.aspx):
    1. The directory from which the application loaded.
    2. The system directory.
    3. The 16-bit system directory.
    4. The Windows directory.
    5. The current directory.
    6. The directories that are listed in the PATH environment variable.
    Looking at the ProcMon log for the environment where it works correctly (Windows XP, no Citrix) it looks like this . Numbers represent the search order mentioned above:
    Load Image     C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crxf_rtf.dll     SUCCESS     Image Base: 0x3e640000, Image Size: 0x79000
    (1) QueryOpen     C:\Program Files\<our application name>\libpng10.dll     NAME NOT FOUND     
    (2) QueryOpen     C:\WINDOWS\system32\libpng10.dll     NAME NOT FOUND     
    (3) QueryOpen     C:\WINDOWS\system\libpng10.dll     NAME NOT FOUND
    (4) QueryOpen     C:\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (5) QueryOpen     C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\libpng10.dll     SUCCESS      ...
    So you can see it finds the file in the "current directory"
    Now, from the environment where it does not work (Windows 2003 Server / Citrix):
    Load Image     X:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crxf_rtf.dll     SUCCESS     Image Base: 0x3e640000, Image Size: 0x79000
    (1) QueryOpen     X:\Program Files\<our application name>\libpng10.dll     NAME NOT FOUND     
    (2) QueryOpen     X:\WINDOWS\system32\libpng10.dll     NAME NOT FOUND     
    (3) QueryOpen     X:\WINDOWS\system\libpng10.dll     NAME NOT FOUND     
    (4) QueryOpen     X:\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (5) QueryOpen     X:\Documents and Settings\<my user name>\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (6) QueryOpen     ... loops trough all paths in the PATH variable, finding nothing
    As you can see somehow the current directory is %USERPROFILE%\WINDOWS and not the Crystal Reports bin path in this environment at the time of loading the dll.
    I have yet to discover why this is the case, but i tought i could share what I have found =)
    The %USERPROFILE%\WINDOWS folder is not a standard Windows folder, and I think it is used by Citrix for some files (like win.ini)
    This also shows why adding the bin folder to the PATH variable is a valid workaround for some, but for us this is not really a good solution as we need this to work out of our installer. We don't always have consultants do the installations for the customers and we cannot expect them to manually edit the PATH variable, and we don't want to add to the PATH variable in the installer unless this is the only way...
    So, I hope this maybe can bring you closer to being able to reproduce it. I'm still looking into it, will post more if I find something else interesting

Maybe you are looking for