Problem exporting crystal PDF using printoutputController.export method

Has anyone used PrintOutputController().export() method in ReportClientdocument to export Crystal PDF report to a JavaIOStream. I am getting an error when I try to export it using this method. The error I get is unable to connect RAS.rptappsrver followed by classcast unable to export to IXMLSerializable. Here is the code I am using.
Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("","RASReportFactory");
ReportClientDocument reportClientDoc = reportAppFactory.openDocument(reportID, 0, Locale.ENGLISH);
return reportClientDoc.getPrintOutputController().export(exportOptions);
Here is the exact Exception:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: FICLDEV303VWIN.RAS.rptappserver. --- com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable---- Error code:-2147217387 Error code name:connectServer
Caused by:
java.lang.ClassCastException: com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable
     at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.saveContents(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.save(Unknown Source)
     at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)
     at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.getReportByteStream(CrystalReportServlet.java)
     at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.processUsingReportExportControl(CrystalReportServlet.java)
     at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:128)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
     at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
I
Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
Edited by: Dilshad Ahmed on Nov 5, 2008 5:55 PM
Edited by: Dilshad Ahmed on Nov 5, 2008 6:09 PM

Here is the answer. After getting ReportClientDoc from factory we need to set the DatabaseController userid and password (if report on Crystal server is accessing oracle database as datasource). In addition we need to set parameters on the ReportClientDoc for reports and subreports before doing the the export.
Here is snippet of code: The code below is used to get ReportClientDocument and export it as PDF using bytestream.
/* Code for getting report client document */
private static synchronized ReportClientDocument getReportClientDocument() throws Exception
         int count = 3;
         ReportClientDocument rpt = null;
         while (count > 0 && rpt == null)
              try
                   if (_enterpriseSession == null)
                        ISessionMgr _sessionMgr = CrystalEnterprise.getSessionMgr();
                        _enterpriseSession = _sessionMgr.logon(CRYSTAL_USERID, CRYSTAL_PASSWORD, CRYSTAL_SERVER, CRYSTAL_AUTH);
                         LOG.info("Successful Logging into Crystal Server: " + CRYSTAL_SERVER);
                         _reportAppFactory = (IReportAppFactory)_enterpriseSession.getService("", "RASReportFactory");
                         _infoStore = (IInfoStore)_enterpriseSession.getService("InfoStore");
                         IInfoObjects result = _infoStore.query("Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_NAME = '" + CRYSTAL_REPORT_NAME + "' And SI_INSTANCE = 0");
                         IInfoObject infoObject = (IInfoObject)result.get(0);
                         _reportId = infoObject.getID();
                         LOG.info("Located Report Id on Crystal Server: "+_reportId);
                    LOG.info("Created or found CR session");
                    rpt = _reportAppFactory.openDocument(_reportId, 0, Locale.ENGLISH);
                    break;
              catch (Exception e)
                   rpt = null;
                   _enterpriseSession = null;
                   if (--count == 0)
                        throw e;
          return rpt;
/* report for setting parameter */
private synchronized void setReportParameters(ParameterFieldController fieldController, String reportName,
              String[] reportParameterValues,     DataDefController subDataController) throws SalesforceException
         try
              Fields params = subDataController.getDataDefinition().getParameterFields();
               for (Iterator it = params.iterator(); it.hasNext();)
                    ParameterField paramField = (ParameterField)it.next();
                    int paramIndex = getElementIndex(_reportParameters, paramField.getName());
                    if (paramIndex < 0)
                         throw new SalesforceException("Parameter not defined in the configuration");
                    ParameterFieldDiscreteValue dVal = new ParameterFieldDiscreteValue();
                    dVal.setValue(reportParameterValues[paramIndex]);
                    fieldController.setCurrentValue(reportName, paramField.getName(), dVal);
               LOG.info("Completed setting parameters for report " + reportName);
         catch (ReportSDKException e)
               LOG.error("Set Report Parameters error: ", e);
               throw new SalesforceException("Set Report Parameters error", e);
     catch (Exception e)
               LOG.error("Error from getElementIndex: ", e);
               throw new SalesforceException("Set Report Parameters error", e);
/* main method used to getReport based on passing information */
    private synchronized byte[] getReport(String contactId) throws SalesforceException
         try
              String[] reportParameterValues =
                   new String[] {_sessionId, _viewId, _requestId, contactId, _language};
               DataDefController reportDefController = reportClientDoc.getDataDefController();
               reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:Main" : "Main");
               setReportParameters(reportDefController.getParameterFieldController(), null,
                         reportParameterValues, reportDefController);//.getDataDefinition().getParameterFields());
               IStrings subRepNames = reportClientDoc.getSubreportController().getSubreportNames();
               for (Iterator iname = subRepNames.iterator(); iname.hasNext();)
                    String subName = (String)iname.next();
                    reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:" : "") + subName;
                    setReportParameters(reportDefController.getParameterFieldController(), subName, reportParameterValues,
                              reportClientDoc.getSubreportController().getSubreport(subName).getDataDefController());//.getDataDefinition().getParameterFields());
               InputStream is = reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
             byte[] reportBinaries = new byte[is.available()];
             is.read(reportBinaries);
             is.close();
             LOG.info("Completed exporting Crystal Report as InputStream using export() method: "+contactId);
             return reportBinaries;
         catch (ReportSDKException e)
               LOG.error("Report generating error: ", e);
               throw new SalesforceException("Report generating error", e);
         catch (IOException e)
               LOG.error("Report exporting error: ", e);
               throw new SalesforceException("Report exporting error", e);

Similar Messages

  • I am having problems exporting to PDF using InDesign for Mac.

    Hi all!
    I just started using the Creative Suite on Mac and have run into a couple problems. One is that when I set up a document in InDesign using "Facing Pages" and then export to PDF, the document exports each set of "Facing Pages" as one singular spread (my 20 page InDesign document becomes a 10 page PDF). Once it is a PDF, there are no page break lines in the center of the spread to indicate that they are two separate pages, and when I try to set up viewing preferences in Acrobat (single or double page), it too recogrnizes each spread as a single page.
    When I used to do this in InDesign using Windows, whether I exported to PDF or printed to PDF from a document set up with "Facing Pages," each page would still be considered separate once converted to PDF (20 page InDesign docment becomes a 20 page PDF).
    This also leads me to my next question : I see that on Mac, there is no option for printing to PDF, but I notice a quality difference specifically when it comes to linework (vector information) that has been "placed" in the document from Illustrator. Is there any way to achieve the quality of printing to PDF on Mac?
    Thank you in advance!
    Gabby

    Hi Bob, I just tried your suggestion, but the interactive PDF is in spreads by default, no way to change the setting. When I choose to view by single page in Acrobat, it displays a single spread.
    When I choose to view by spreads, it displays 4 pages, two spreads. That's the topic of this whole discussion, I believe. I do own CS 6 at home, however my employer supplied me with CS 5.5. And I have very little, if any, influence on purchasing.
    So, I have no good way to make an interactive PDF (with differing recto/verso headers and footers), that is accessible and shows the correct header/footer. It's either single pages (with one header/footer), or recto/verso headers/footers but PDF only as a spread, as well as I can tell.
    Unless you know something else I can do...
    Best, Marilyn

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • How to export book pdf using custom presets for all book files in indesign using javascript

    How to export book pdf using custom presets for all book files in indesign using javascript.

    Hi jackkistens,
    Try the below js code.
    Note: you can change your preset name in below (e.g, Your preset name).
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
    example:
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
    thx,
    csm_phil

  • Error when exporting to pdf using Infoview.

    Hi,
    If I preview one of our reports (built in CRXI) in the CMC for CR server and then attempt to export the output to a PDF after waiting for a few mins I get the error:
    Error
    Your request could not be completed because a failure occurred while the report was being processed. Please contact your system administrator. 
    The report has 6 supreports each that take 2 parameters. Previously we have had problems with this report when trying to change the database connections for the subreports (we were getting a 'Missing prompting units' error until we started making the database connection change in CRXI, running from CRXI not the CMC and then saving the file to the repository once it had run successfully with the new connection settings).
    All our other reports preview fine, they do not generally use sub-reports or multiple parameters though.
    Thanks for your help.

    There's so many variables for each Enterprise action, even with an effort to improve these over the years, the Enterprise error messages are usually so vague you have to trace to really identify the issue.
    Exporting directly from Crystal Reports is a good start.
    Sometimes it's just a matter of the report has streamed the 1st/beginning pages to you, but it is still processing in the background when the export to pdf is executed. Since the report is not complete, it fails. Try scheduling it directly to pdf to eliminate this possibility.
    Else you will have to trace the Page Server or RAS to get more info.

  • Can't use touchscreen on my exported fillable pdf using my HP W8 tablet

    I've used FormsCentral to create and then export fillable pdf - (Tablet is WIFI only and sometimes I don't have a connection - hence I can't use it online all the time so I've exported as a pdf) - anyway. Tablet is Windows 8.1 Pro, 64bit, HP EliteTab 900. My problem is that unless I have my keypad plumbed in (which works fine) - I can't get the PDF to prompt for the onscreen keypad when I click on the open text fields. I don't always have the keypad on me - not practical for tablet use. Is there a setting or option or a different reader I should be using??

    Hi;
    I am going to assume by the Windows 8/8.1 Adobe Touch app you mean "Adobe Reader Touch" (the full screen Metro app as opposed to traditional desktop application). 
    If you do indeed mean the "Metro" version of Reader for Windows 8/8.1 devices you can post your issue in the related forum here: http://forums.adobe.com/community/adobe_reader_forums/metro
    I do not know why this isn't working in the Reader Metro, or if it is a feature that has been added there yet or not...  I am inquiring to find out.  In the mean time your crew members can always use the "desktop" Adobe Reader (Free download get.adobe.com/reader/) and the Submit button using the Email method will work from there.
    Thanks,
    Josh

  • Why does an InDesign document exported to PDF using data merge result in very different sized PDFs?

    I've got a small sheet that I update on occasion and use data-merge to add people's names to the sheet. It's very much like an invitation where every invite has a different name on it. I use the data merge feature to select a list of names and then they get inserted into the document. Then I use the Export to PDF command in the data merge window to create a pdf that has all of the invitations in one big file. They are four-up per page on letter sized paper. Sometimes I print 2000 of them and the resulting PDF is about 2mb, sometimes I print 1000 of them and it's 20mb. Document, settings, method of issueing the commands to output the files are all the same. The only difference is the list of names and those are all almost identical in length. Anyone know what could be happening?
    One clue is that it takes about a minute to run when the result is going to be a small file and about 5 or more minutes when the result is going to be a large file.
    My guess is that sometimes it includes a copy of the images once per page, and sometimes it only includes them once per document, but I'd love to know why and how to control that. Thanks.

    And you verified that the links panel shows everything as up-to-date?
    The only other things I can suggest at the moment are the standard two trouble shooting steps: Remove minor corruption by exporting and Replace Your Preferences

  • Export to pdf using presets

    Hi
    I want to create a pdf using export to pdf option with a preset in Indesign.
    I have found this following code in Adobe Scripting Guide: VBScript. But it is not working when I tried to run this script by converting this into vbs and added into scripts folder of Indesign.
    Set myInDesign = CreateObject("InDesign.Application.CS3")
    myInDesign.ActiveDocument.Export idExportFormat.idPDFType, "c:\myTestDocument.pdf", False, myInDesign.PDFExportPresets.Item("[Press]")
    Is this anything I have to do with "c:\myTestDocument.pdf" ( I dont understand whether I have to place a pdf in this location before run this script). Please explain.
    Thanks a lot.
    Regards,
    Muthuraj. D

    That parameter is the output file name, as described in the Javascript help. I would know where to look for VB scripts -- isn't that built-in?

  • Export to PDF using PDF Writer other than Adobe

    Post Author: m_z_iqbal
    CA Forum: Exporting
    Hi,
             How can i change the printer for CRVIEWER when exporting to PDF ?     Your reponse in this regard will appreciated. Thanks  

    That parameter is the output file name, as described in the Javascript help. I would know where to look for VB scripts -- isn't that built-in?

  • Numbers | Export to PDF | Cannot Print Exported PDF

    I am having a heck of a time with being able to print PDFs exported out of Numbers. I have tried both the File>Export command and I have printed to PDF and printed to Adobe PDF. Once I open the exported / printed PDF files in Acrobat Reader and try to print them, Reader freezes after 30 seconds of ramping up its memory usage in excess of 300MB. The PDFs are less than a MB in size. I have been able to successfully print the exported / printed PDF files using Preview on a Mac, but the reason I need to be able to convert my spreadsheets to PDF is so that a colleague in another state can print them from a PC. Anyone run into this issue? Any help is greatly appreciated!!

    Jared
    You wrote:
    Is there a way to automate it such that it doesn't repeat the last row or do I just need to manually delete the formula out of all of the cells in the rows after the last?
    There sure is. I was in a rush and made a mistake in my formula. I've posted solutions to this problem at least a half a dozen times here in the past and for some reason I didn't recall the bit that you are having trouble with. It came to me overnight that I had led you astray.
    Here's a solution for the expression in the reduced table that I've used before and I'm pretty sure you will have success with:
    =IF(ROW()<(MAX(Data :: E)+1), INDEX(Data, MATCH(ROW(), Data :: $E), COLUMN()), "")
    Here's how it works...
    The auxiliary column in the table Data reports the count of important rows. The reduced table searches for the count number in the Data table matching the row number in the reduced table. The Index function then transfers the data for the matching row. The problem in my posted solution was with the condition that limits the copying of rows to the reduced table.
    Rather than checking the total number of rows in the data table, with an offset, I should have just checked to see how many "'important" rows there are by looking at the max count. The "+1" offset in the test is to account for the Header Row.
    Regards,
    Jerry

  • Cant export to PDF after buying export to pdf

    Hi All i am in dire straights i bought export to pdf however it wont work, ive tried doing it several times and it comes up with an error at the end of the upload. Some people say you have a 100mb limit for this my file is only 87mb. some people also say split the document however i dont know how to do this nor should i have too as i paid for the ability to export pdf to word. I am doing this as i need to edit the file in MS Publisher as the orginal file was lost when my previous pc crashed. Please help

    The forum for ExportPDF is here:
    http://forums.adobe.com/community/exportpdf
    Please post there with the exact text of the error meassge.

  • Problem while generating PDF using iText

    Hi:
    I have generated PDF using iText, where i have written all code in sequential flow.
    <code>
    com.lowagie.text.Document document = new com.lowagie.text.Document(PageSize.A4, 55, 5, 20, 20);
    OutputStream outputstream = response.getOutputStream();
    PdfWriter.getInstance(document,outputstream);
    </code>
    And i have added all fields in the document.
    But my problem is how to display total pagecount on all pages e.g.1\20 (because i have generated PDF sequentially)
    Also i want to add watermark on all pages.
    So, can any body help me to solve this problem?
    Thank You,
    Balaji

    sabre150 wrote:
    Maybe http://itext-general.2136553.n4.nabble.com/
    Nice pron link in there :/

  • Problem on printing pdf using "Adobe default Printer"

    Need to save a copy of active pdf using "ADOBE DEFAULT PRINTER" option in print action. I want to perform this task for plenty of documents in folder so i prefer to script and this is achieved through javascript scripting.
    In addition, need to change:
    "ADOBE PDF options:Smallest file size"
    I cant find this property in javascript documentation.
    can any one help me out.

    HI Bernd Alheit,
    Can you explain in detail.
    thanks

  • Internal error exception when try to export Crystal Report using V2008 C#

    Hello
    Im working in an application that should send a parameter to a crystal report. Everything works fine when i test the report in the CR 2008 and shows the information correctly
    After has the report working, i design a Visual C# application using forms and loading and exporting the report, which still works ok (generates the pdf file with the information)
    Then i convert this application as a console application. The point is i need the report working as a windows service, to generate it every 15 minutes without user intervention (but try it as a console application first to be sure it will work ok before creating as a service)
    Then i started the service. But when i call the report it sends an exception that i cannot understand:
    Internal exception No se pudo abrir la conexion.
    No se pudo abrir la conexion.
    Prueba {DDE88B40-8A22-4EDB-9DEE-A5033DAA0140}.rpt
    This is my code for the report that works fine as long as i don´t put any parameter into the sql command:
    ReportDocument cryRpt = new ReportDocument();
    cryRpt.Load(nomRepU);
    cryRpt.Refresh();
    cryRpt.SetParameterValue("EVAId", evaID);
    ExportOptions CrExportOptions = new ExportOptions();
    DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
    PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();
    CrDiskFileDestinationOptions.DiskFileName = @"" + path + "
    " + nomRepPDF_Exp;
    CrExportOptions = cryRpt.ExportOptions;
    CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
    CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
    CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
    CrExportOptions.FormatOptions = CrFormatTypeOptions;
    cryRpt.Export(); -
    here i get the exception
    I checked that the parameter is being read correctly in the crystal report as i remove all the sql commands and just put the parameter in the heading of the report, and is show as supposed and generates the pdf file automatically, but when i assign the parameter to the sql command (select * from myTable where idTable = {?EVAId}  ) the crystal report send the exception i mentioned above
    I don't know what to do, i don't know if i configuring correctly the report or something is missing. I would appreciate any help. If need more information please let me know. This is making me crazy
    Thanks in advance
    Veronica Estrada

    Hello all
    I just fixed my issue, i made some changes in the code as well as in the crystal report:
    *Crystal report changes*
    I removed the parameter that i have to filter the information, instead i in the C# code i let the crystal report which records to show
    Note: in the preview of the report all information will be shown, however i won´t use it this way so is not a problem
    *Visual C# changes*
    // Load the crystal report
    cryRpt.Load(nomRepU);
    // Establish SQL conection parameters - below the code for the function
    SetTableLocation(cryRpt.Database.Tables);
    //This is really the main change, because if i use "setParameter" function still generates "Internal exception"
    cryRpt.DataDefinition.RecordSelectionFormula = "{EVAPrincipal.EVAId} = " + evaId;  // ---> Should be the same name of the table and the recordID i want to show
    // Export function
    cryRpt.Export();
    private void SetTableLocation(Tables tables)
                ConnectionInfo connectionInfo = new ConnectionInfo();
                connectionInfo.ServerName = @"" + server;  // ODBC
                connectionInfo.DatabaseName = @"" + initialCatalog;  // data base name
                connectionInfo.UserID = @"" + user;
                connectionInfo.Password = @"" + password;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
                    tableLogOnInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogOnInfo);
    My notes:
    I guess i had two problems: the first with the SQL connection, in connectionInfo.ServerName i was using the name of the instance instead of the ODBC name. The second is the way the parameter is received in the crystal report as it works as windows service (this is my guess) then if i control everything through the C# code it runs perfect!
    Hope this helps if anyone has a similar problem
    Regards
    Veronica Estrada

  • Call and Save Reports/Export to PDF using Dataplugin?

    Hello,
    My dataplugin is for various '.csv' files, and works perfectly when reading and loading the files. But, what would really be nice is if I could then somehow bring the data in those files into their appropriate report templates and then export that report as a '.pdf'.
    So, I tried adding:
          Call DataFileLoad([Filepath],[Script]
          Call DataFileSave([Filepath], ".TDM","TDM")
          Call Report.LoadLayout([Report Path])
          Call Report.Sheets.ExportToPDF([Path to save .pdf] ,False)
          Call Report.Refresh
          Call Data.Root.Clear()
    When I test the dataplugin by manually indexing a file, I receive the error: Variable is undefined: 'DataFileLoad'"
    So, if it is reading it as a variable does that suggest that it does not recognize functions unless they are stated in the sub?
    Is it possible to do what I would like it to do?
    Thanks.
    Solved!
    Go to Solution.

    Hi Kevin,
    DIAdem does not provide scheduling services, so some entity needs to tell DIAdem to start.  You can either manually set up a DIAdem to poll for files to pricess in an endless loop, or you can use the Windows Task Scheduler to launch a DIAdem instance periodically that automatically looks for files to process for a certain duration (after which it shuts itself down to avoid any potential long term memory leaks).
    R&D is interested in improving our offering for this use case, but as of DIAdem 2014 we do not have anything new available.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

Maybe you are looking for

  • Airport express setup, not working, please help me out

    i recently purchased a airport express so that i can extend the range of my current network, use airtunes, and have wireless printer sharing. My base station is a d-link router, and from there i have been having a lot of problems. I have been able to

  • Windows recovery error loop (HP Pavilion dvd-1132us)

    My Pavilion (originally running Vista, changed to Windows 7) was working fine, and then stopped loading Windows. It starts up fine, then a black screen comes up with this message: Windows failed to start. A recent hardware or software change might be

  • Problem with Solaris 8 CD Images

    I have downloaded the installation CD and the software 1 & 2 CD images. I unzipped all three and moved the resulting filenames to *.iso as stated in the download instructions. After using Easy CD Creator to burn the installation CD, the usual disk pa

  • E72: scroll speed in email and web

    Hi pressing down to read emails or WWW pages in the default browser has: - too long a delay till action - too high a speed is there anyway to change this ( what would otherwise be delay and repeat on a keyboard)? tried changing this in the optical na

  • HOW TO remove nodes add nodes dynamically create objects branchgroup

    After much trial and error, frustration and reading this forum I have come across a good way to dynamically add/remove objects. This is working in my model with 1.3 and jdk 1.4.1_02 Sorry if its sloppy. Here goes: Adding objects (cap bits may not be