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

Similar Messages

  • 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 do I preserve the embedded hyperlinks when printing to .pdf?   I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it's just the flick of the right button – I just need help finding that

    How do I preserve the embedded hyperlinks when printing to .pdf? 
    I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it’s just the flick of the right button – I just need help finding that button. 
    Can you help?  Thanks!

    How:  MS Word to .pdf by Command P, hitting the PDF button, and then the button for "save as Adobe pdf"
    I didn't have this problem at all on prior versions of Adobe on my PC.   This isn't a Mac attack, is it?

  • Images downsized and converted when exporting to PDF

    I have Pagemaker 7.0.1 installed on Virtual XP so that I can help out a family member.
    Pagemaker's embedded Acrobat 4 was not working properly so I installed my Acrobat 9.0 on Virtual XP. This unfortunately has not solved the problem, which is:
    My images are greyscale and 300 ppi when imported into Pagemaker. When exported to PDF using Acrobat 9.0, the images are being converted to CMYK and exported at about 50% of the actual size. Interestingly, those images that are only at 200 ppi are converted but not downsampled.
    This is happening no matter how I fiddle with the settings. Happens to both jpegs and tiffs.
    I found an old thread on another forum where this problem occurred but a solution was not found or posted.
    Any ideas?
    Michelle

    This reply is a series of comments and suggestions rather than a definitive answer.
    1. Your set up is less than perfect, if not unstable, and will be prone to all sorts of bizarre behaviours.
    2. Never copy/paste a graphic or table into PageMaker.  Always use the Place command. The only "exception" would be that you can copy and paste a properly Placed graphic from within your PageMaker document.
    When placing images in a PageMaker file, the following message appears: “The graphic in the linked file would occupy xxxxxxx bytes in the publication. Include the complete copy in the publication anyway?” The correct answer to this question is always "NO".
    (You can permanently avoid this popup in future docs by unchecking "store copy in publication" under Element -> Link Options with no publication open. You can do the same to avoid further prompts in pre-existing documents.)
    3. Try updating PM to Ver 7.0.1a which had a better Export… AdobePDF…macro. http://www.adobe.com/support/downloads/product.jsp?product=34&platform=Windows 
    4. In PageMaker’s Print dialogue, click on the Options button, and check "Write PostScript to File." Select the "Normal" radio button. Set both Type 1 and TrueType fonts to download. As always, set the Send TIF/Images option to Normal and NOT Optimized. Make other settings elsewhere in the print dialog as desired, such as "paper" size, crop marks, separations, etc.
    5. With your non-standard setup, try the two stage print then distill process. Create a PS file using a postscript printer file, then load Distiller and convert the PS file to PDF.  Note: if you have hyperlinks in your PMD file, they will not appear in your PDF and need to be re-created using Acrobat.
    6. It's time to leave PM and move on to InDesign - see it as PM Ver 13. 
    7. Aternatively, use PM7 on a contemporary Win2K PC.  http://bigjohnd.org.uk/PageMakerExportPDF/index.htm

  • Crystal Report Export to PDF with Group Tree Bookmarks

    Dear Forum
    I have created a Crystal Report aspx page with an export function of the report to pdf. So far all has been successful, except form one little annoying this. The report does export to a pdf file and it does create bookmarks based on the group tree, BUT when opening the pdf file the bookmarks hiest point which should be the file name is the really long temp file name with .rpt as an extension. I have looked every where to try to get it to write the filename to the bookmark hierarchy without success.
    I come you you all for any form of help to solve this issue.
    My code is below
    CrystalDecisions.Shared.ExportOptions export_options = new ExportOptions();
                export_options.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
                string ext = ".pdf";
                string reportName = "Filename";
                CrystalDecisions.Shared.PdfFormatOptions pdfOptions = new PdfFormatOptions();
                pdfOptions.CreateBookmarksFromGroupTree = true;
                export_options.ExportFormatOptions = pdfOptions;
                report.ExportToHttpResponse(export_options, Response, true, reportName);
                Response.Clear();
                Response.Buffer= true;
                Response.End();
    Below is an image of the output
    Any and all help is greatly appreciated

    Using the search box in the top right corner and entering the search string 'bookmark pdf crystal', the very 1st KBA is:
    1331152 - Report exported to PDF format with bookmarks displays the bookmarks as report name plus a GUID
    Please see if this resolves the issue for you.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • 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

  • Using OBIEE Scheduler to export and save data in excel/pdf

    Hi
    Is it possible to use obiee scheduler and run particular reports and export the data into excel/pdf and save this file at given location on server.
    env: obiee 11g/linux OS
    Thanks for any ideas.

    Hi,
    Yes it is possible.
    As per my knowledge we don't have such option but we can do one way.
    Using IBOTS you can store specific report and specific time in specific location.
    Note : Using JS script.
    Are you going to implement this way send me your mails id will send you js script for doing this.
    Re: Auto SAVE to excel -- Please refer this thread.
    Create js file using the below script and add this js scrif in your ibot advanced tab.
    var FSO = new ActiveXObject("Scripting.FileSystemObject");
    var foldername = 'D:\IBOT'
    if (FSO.FolderExists(foldername))
    var fileName = foldername + "\\" +Parameter(1);
    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
    else
    FSO.CreateFolder(foldername);
    var fileName = foldername + "D:\IBOT" + Parameter(1);
    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
    Thanks,
    Satya

  • Crystal Reports Export to PDF and Security

    I am writing a PC application in VB.Net (using Visual Studio 2005 and which ever Crystal Reports package comes with it) which utilizes Crystal Reports and exports the reports to PDF files.  My company creates other PDFs through other programs and is able to set different security options on those PDFs to prevent users from being able to edit them in Adobe Acrobat.  I believe this involves setting a password and a few other options.  Is there a way to do this when creating a PDF by exporting to PDF a Crystal Report?
    Any help or advice on this matter would be greatly appreciated.

    Could you provide me a link and/or more informationa bout this Crystal Reports Scheduler?  I have another issue I'm trying to take care of and I'm wondering if this could help me.  I use the Crystal Reports that comes with Visual Studio 2008 to build my reports and then turn them into PDFs.  However these PDFs are not [section 508|http://www.section508.gov/|Section508.gov] compliant.  I need to add [tagging|http://www.acrobatusers.com/tutorials/what-are-pdf-tags-and-why-should-i-care|What are PDF tags and why should I care] to the PDFs.  Do you know if the component you mentioned can do this?  Or of any other product that can?
    [This|Export to PDF - Section 508 Accessibility Compliance; is the thread my other question is on.
    I'd appreciate any information you could give me.

  • CRYSTAL REPORT EXPORT TO PDF INSERTS lowercasee i after t

    I have a crystal report file that is stored as image type in table (SQL Server).When i open the report file in my application (Visual Studio (C#) ), it shows the required one.But When i export to pdf  and save it to my local hard drive, and if i open that file, i find that after every lowercase 't' , letter 'i' is appended.I searched through google and found that it migh be a font issue.Even after changing the font, i was not able to resolve the issue.
    Example : 'Project'   becomes  'Projecti'
    Please provide a resolution to this issue

    See if KB [1547961  - The character 'i' is added after every lower case 't' when a report is exported to PDF file format|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343337333933363331%7D.do] helps. Also, search these forums. There are a few threads on the issue here.
    KB was found by using the following search term; 'character i crystal net' )as well as a number of variations. (Use the search box in the top right corner of this web page .
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Call to predefined Report Query for PDF download does nothing

    I am trying to download a PDF report which is based upon 2 queries. Each query has a where clause with values taken from page items. I have installed OBI Publisher 11.1.1.5 and used the OBI Publisher 11.1.1.5 Word plug-in to create the RTF file that I then uploaded to the Shared Components->Report Layout.
    I created a new region button to call the Report Query. However, whenever I click on the button to download the PDF, nothing happens. I have looked at the debug and the button appears to be executing OK, except that nothing happens.
    The APEX to OBIP configuration is working since I am able to have OBIP generate other report PDFs that aren't using the predefined query. Stated a bit differently, reports regions that have the Print Attributes set to "Enable Report Printing=Yes" and "Report Layout=Default Report Layout" work fine. Reports based upon the predefined query and launched using a region button do not do anything.
    Environment: APEX 4.1, DB 11.2.0.2, OBIP 11.1.1.5
    Any help with this PDF issue is greatly appreciated.
    Thanks,
    Reid

    Thank you again for your reply, Udo.
    Here are my responses:
    * As a matter of fact, I am doing a copy / paste from the predefined query to the report region source.
    ** What exactly do you mean by that? Don't you print the actual region?
    I need to produce a PDF that is the compilation of 4-5 queries. Therefore, I cannot print a region to PDF since APEX (as far as I know) does not allow for the printing of multiple regions (1 query per region) to a single PDF file. So, I am creating a PDF that is based upon multiple queries which I predefine in the shared components -> report queries. Then, I'm creating a region button that calls a downloadable report when it is clicked.
    Your question has made me realize that indeed it doesn't matter what query I have in the report region since I am calling a predefined report. When nothing was happening when I attempted to generate the PDF, I guess I started to think that the problem was with the queries on the page and so I made them match exactly with what the queries are in the shared components->report queries.
    Please advise if something is wrong with my understanding here.
    I checked the OBI Publisher logs (at least what I could locate) and I didn't see anything show up there.
    /u02/app/ohs/obip_mw/user_projects/domains/bifoundation_domain/servers/AdminServer/logs
    I checked the OHS access_log and I didn't see anything that looks like an error. I also don't see anything in the APEX page debug. It appears to process normally when the button is clicked.
    From the access_log:
    192.168.1.137 - APEX_PUBLIC_USER [27/Dec/2011:22:17:30 -0500] "GET /pls/apex/f?p=4000:RUN_PAGE:55206340610065:BRANCH_TO_PAGE_ACCEPT:NO::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW:103,235,103 HTTP/1.1" 302 -
    192.168.1.137 - APEX_PUBLIC_USER [27/Dec/2011:22:17:30 -0500] "GET /pls/apex/f?p=103:235:55206340610065::::: HTTP/1.1" 200 21588
    192.168.1.137 - APEX_PUBLIC_USER [27/Dec/2011:22:17:32 -0500] "POST /pls/apex/wwv_flow.accept HTTP/1.1" 302 -
    192.168.1.137 - APEX_PUBLIC_USER [27/Dec/2011:22:17:32 -0500] "GET /pls/apex/f?p=103:235:4495899155137965::::: HTTP/1.1" 200 21588
    Here is a look at the page debug:
    0.00246     0.00107     A C C E P T: Request="TRANSCRIPT_PDF"     4
    0.00350     0.00501     Metadata: Fetch application definition and shortcuts     4     
    0.00851     0.00080     alter session set nls_language="AMERICAN"     4     
    0.00931     0.00060     alter session set nls_territory="AMERICA"     4     
    0.00991     0.00078     NLS: CSV charset=WE8MSWIN1252     4     
    0.01069     0.00067     ...NLS: Set Decimal separator="."     4     
    0.01136     0.00083     ...NLS: Set NLS Group separator=","     4     
    0.01219     0.00082     ...NLS: Set g_nls_date_format="DD-MON-RR"     4     
    0.01301     0.00079     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.01380     0.00077     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.01457     0.00064     ...Setting session time_zone to -05:00     4     
    0.01522     0.00077     Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM     4     
    0.01599     0.00094     Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH:MIPM     4     
    0.01693     0.00077     ...NLS: Set g_nls_date_format="DD-MON-YYYY HH:MIPM"     4     
    0.01770     0.00078     ...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH:MIPM"     4     
    0.01848     0.00068     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.01916     0.00046     NLS: Language=en-us     4     
    0.01962     0.00219     ...metadata, fetch translated application info     4     
    0.02181     0.00088     ...fetch session state from database     4     
    0.02269     0.00096     fetch items     4     
    0.02365     0.00090     ...fetched 32 session state items     4     
    0.02455     0.00170     Authentication check: CUSTOM TABLE AUTH (NATIVE_CUSTOM)     4     
    0.02625     0.00074     ... sentry+verification success     4     
    0.02698     0.00057     ...Session ID 4495899155137965 can be used     4     
    0.02755     0.00056     ...Check session 4495899155137965 owner     4     
    0.02811     0.00064     Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM     4     
    0.02875     0.00080     Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH:MIPM     4     
    0.02955     0.00062     ...NLS: Set g_nls_date_format="DD-MON-YYYY HH:MIPM"     4     
    0.03017     0.00069     ...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH:MIPM"     4     
    0.03086     0.00053     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.03139     0.00130     ...Check for session expiration:     4     
    0.03269     0.00055     ...Metadata: Fetch Page, Computation, Process, and Branch     4     
    0.03323     0.00102     Session: Fetch session header information     4     
    0.03425     0.00047     ...Setting session time_zone to -5:00     4     
    0.03472     0.00187     ...metadata, fetch page info     4     
    0.03660     0.00092     ...Validate item page affinity.     4     
    0.03751     0.00050     ...Validate hidden_protected items.     4     
    0.03801     0.00061     ...Check authorization security schemes     4     
    0.03862     0.00095     Session State: Save form items and p_arg_values     4     
    0.03957     0.00081     ...Session State: Save "P235_TRANSCRIPT_ID" - saving same value: "7"     4     
    0.04038     0.00065     Processes - point: ON_SUBMIT_BEFORE_COMPUTATION     4     
    0.04102     0.00082     Branch point: Before Computation     4     
    0.04185     0.00054     Computation point: After Submit     4     
    0.04239     0.00079     Tabs: Perform Branching for Tab Requests     4     
    0.04317     0.00065     Branch point: Before Validation     4     
    0.04382     0.00111     Validations:     4     
    0.04493     0.00165     Perform basic and predefined validations:     4     
    0.04658     0.00070     Perform custom validations:     4     
    0.04728     0.00054     Branch point: Before Processing     4     
    0.04782     0.00057     Processes - point: AFTER_SUBMIT     4     
    0.04839     0.00054     Branch point: After Processing     4     
    0.04893     0.00096     ...Evaluating Branch: AFTER_PROCESSING type: "REDIRECT_URL" button: (No Button Pressed) branch: (Unconditional)     4     
    0.04989     0.00071     Stop APEX Engine detected     4     
    0.05059     0.00055     Stop APEX Engine detected     4     
    0.05114     0.00122     Final commit     4     
    0.05236     -     End Page Processing

  • 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);

  • SSRS report export to PDF hangs in Abode 9.4

    HI,
    I have a SSRS 2008 report which get exported as PDF. I render the ssrs report byte[] array as content attachment on to my web page. It renders with open/save/cancel. But on click of the open, the report get hanged. This issue is with the abode version 9.4
    Font used in the report is Airal Unicode MS.(this is for different locale) Size of the pdf is less than 150 kb.
    Please help.

    For your case, you may want to look into data-driven subscription where you may be able to run individual report and export them to pdf and have them deliver via email if you have that email in a table. Good luck

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

  • Drill down report export to pdf

    Hi,
    I have a drill down report that i need to export to pdf.to get the drill down facility, I used 'HIDE' option for the groups.
    The drill down works in crystal.But when I export the crystal report to PDF, I could not see the hidden groups/Tabs, and my drill down doesn;t work.Please suggest me what to do while exporting a drill down report to PDF. Is it possible to export a drill down report to Excel?Can someone suggest the precaustions to be taken while exporting to different formats??
    Thank you,
    Tatyana.

    Drill-Down behavior in Crystal doesn't carry over to pdf exports.
    Using one of the 3rd-party Crystal Reports schedulers listed at http://www.kenhamady.com/bookmarks.html you can achieve similar behavior in pdf exports by automating the process of:
    1. exporting the main report to main pdf.
    2. Bursting a detailed report to individual pdf files
    3. using Crystal formulas embedded in the main report to generate live links from the exported main pdf to the individual detail pdf files.

  • HTTPS hyperlinks not working when report exported to PDF

    Hi,
    I have the following problem - I have a https link in the report, which works properly when the report is exported to HTML, Excel, DOC, but no hyperlink is rendered when the report is exported to PDF.
    Important: When http:// or mailto: are used in the hyperlink, then the PDF export renders the link correctly. Only https does not render properly and only in PDF.
    I am using Crystal Reports Basic for Visual Studio 2008. The following 2 dlls are referenced in the .net application:
    CrystalDecisions.CrystalReports.Engine 10.5.3700.0
    CrystalDecisions.Shared 10.5.3700.0
    Thanks in advance for any hints!
    Br,
    Leon

    Update
    I did a little more testing and it worked for me because my Text field said https://mail.google.com and the hyperlink in the background was also https://mail.google.com. Once I updated the Text object to read Gmail it failed like yours did.
    I suspect this is something that spilled over from version 10. Crystal Reports Basic is built on the version 10 runtime and the issue may have been fixed in version 10 but missed for CR Basic. I have a feeling this works without error in XI R2 and 2008.

Maybe you are looking for

  • And one other thing, does anyone if a newer macbook pro will soon come out?

    I am willing to spend up to $4000 or so on a MacBook Pro, but I am wondering if anyone knows if there are going to be any major improvements coming along soon, like for example the graphics... I love everything about the current macbooks pros, but I

  • Connection Failure: ReadFile on fd=1231 failed with err=64  + JVM_recv in socket input stream read

    Hi Guys, Using weblogic 5.1 (downloaded pretty soon after announcement) on windows 2000 (yes I know not certified there yet) and using jdk1.2.2-001. I have a pretty standard setup - a connection pool (5) to a sqlserver (remote) machine. A pretty stan

  • How to automate selective deletion of ods in process chain

    Hi, How can we automate selective deletion of ods in Process chain. I tried with the proceedure. Using T-code "delete_fact" I gave selection parameters and Name of the program and saved this as variant and gave the same program and variant in Process

  • Webservice reinvoked automatically.

    Dear all, I have the following problem. On a session bean, i have a business method for creating deals in R/3. The method gets an xml string as input. That string is than parsed to deals and those are created in R/3. all this happens in a container t

  • Savin' and recalling multiple channel Strips ?

    is there a way to save and recall multiple channel strips ? what i'm trying to do is for example : to set up Ultrabeat Multi which would include several Aux's and busses with indivitual bus effect etc and recall it in a New song exactly as i saved it