Problems with export to PDF from C# code

I have problems export a Crystal report to pdf from code. Generating with database on accept is working as planned. But when I select production database (software on the same server) then I have problems with a few reports? The application just seem to hang on this line of code
myReport.ExportToDisk(ExportFormatType.PortableDocFormat, @"c:\temp\name.pdf");
Configuration Windows server standard with installed:
Crystal Report 2008 Runtime SP3
SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit)
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)
I also tried different formats (txt , excel) but the same problems.

Hi David,
I hope this helps you: C# code to export to pdf using Crystal Report
David,this is not right place to discuss. please post this thread in this location:
SAP Crystal Reports, version for Visual Studio
Thanks,
DJ

Similar Messages

  • Problem with exporting and printing from pages to PDF

    I have a problem with my Pages
    My font will not be embeded in my pdf files.
    I have saved as a ps file and in to the destiller and my fonts are missing.
    I need to send my file to the print shop but they will not accept my file and i now understand why.
    fonts are missing...
    Is there a workaround.
    I have no problem in Indesign or quark but pages.....
    I need help
    thanks a zillion

    The font is coming from a notation software Sibelius 4 and is namned opus
    Hmmm ... Sibelius is a music notation software and notations are marked up in MusicXML. Presumably the font file is an SFNT with TrueType splines, but it is probably not installed in OS X system folders - rather in an internal Sibelius application font folder. So presumably you do not see the font in FontBook and OS X font auditing does not apply to the font.
    Sibelius exports EPS files, right? If memory serves, an EPS is still legal even if the font resource is not embedded. And in any case, we know from the behaviour that the font resource is not embedded for some reason. So how do you get Sibelius to put the font resource inside the graphic ... normally there is a button in the EPS export procedure that gives you the option to Embed All Fonts.
    You do not seem to get this button, though. Or why else would you not have checked it already and the problem would have gone away already.
    The next point in troubleshooting this is that you are not following the path that would let OS X detect that an external font resource is not embedded.
    I go from pages-print-printer- acrobat Pro 8-save as Pdf-x
    What you are doing here is telling Pages to tell OS X to generate a PostScript program within which is nested your Encapsulated PostScript program with the call to an unresolved external font resource.
    So why does Acrobat Pro not detect the unresolved external font resource? Hmm ... did you try the Preflight option in Acrobat 8 Pro? It should provide information on unresolved embeddings.
    I have also tried pages-print-printer- acrobat Pro 8 and save pdf as postscript and put the postscript file in destiller 8 pro with defalt setting high quality print
    The whole problem with EPS and PS is that this sort of situation is possible in the first place (plus, what is worse, the PS program can include custom additions to the graphics model that then fail in the PS interpreter whence Apple GX normalizing, Adobe Distiller normalizing, and Apple Quartz normalizing). You want to get as far away from EPS and PS as possible, believe me.
    So, you have not done what I posted that you should do in the first place. If I were you, I would first get rid of the problem that the EPS is making a call to an external font and then get rid of the problem that the PostScript is preserving the external call.
    To get rid of the problem that the EPS is preserving an external call, simply open the EPS in Apple Preview which includes a NORMALIZER for EPS/PS, and then save out the graphic as PDF. Alternatively, if you don't trust Quartz for some reason, set up a hotfolder for Distiller, make sure the option to embed all fonts is enabled, and convert the EPS to PDF.
    Now replace your EPS in Pages with PDF in Pages, and don't save PostScript to disk but save PDF to disk through the proper procedure which is File > Print > PDF > Save as PDF/X [for your custom configuration of the PDF/X-3 filter considering that no sane person in North Europe prints lowend US SWOP, we use ISO].
    If you begin by telling OS X that you want PDF within which fonts are supposed to be embedded ALWAYS, then you have started the right way. Otherwise, you have not told the operating system what you want to do, and this then leads you into places where you are unlikely to have the expertise to troubleshoot problems.
    So, forget placing EPS in the first place, place PDF. And forget saving PostScript to disk, save PDF to disk. If that does not sort your problem, here is the dirty solution for professional prepress.
    Adobe Photoshop has an EPS rasterizer that has wide tolerances for poor PostScript programming (so does Adobe Illustrator 6 and higher by the way).
    Therefore, if an EPS is posing problems, one workaround is to rasterize the EPS at high resolution in Photoshop and place that high resolution PDF in your layout.
    Take care that you rasterize as 1 bit at the required resolution of the print provider, probably 2450 dpi. When you save the 1 bit as PDF, Photoshop automatically compresses to a very, very small file (don't be surprised if 15Mb compresses to something like 0.5Mb).
    Rasterizing in Photoshop should not be necessary if you simply start by telling the operating system what it is you are trying to do. Then the operating system should be able to take the right decisions for you, and tell if you if finds problems it cannot resolve without turning to you.
    Good luck,
    Henrik
    would-be technical writer

  • Problem with printing to PDF from ID

    I am having trouble printing my ID document as a PDF using "export" or print options. See screen shots for error messages.

    First off, you are not PRINTING to PDF, you are EXPORTING to PDF, which is the preferred method here. You can try export to .idml (see Remove minor corruption by exporting), but most likely there's a problem on one of the pages that won't get fixed that way. For troubleshooting tips, see Adobe Community: File Crashing on Output - printing/PDF/other

  • Text problems with printing to PDF from AutoCAD 2011

    When we print to PDF from AutoCAD, the text in the PDF looks wrong/bad.  It takes on a jagged appearance and doesn't look anything like what the font is supposed to look like.  Any suggestions?

    Yup. It's not that it won't do it, it is just limited to 129". Thanks for the thought. When you print in Acrobat you can see the document size and the page size the program is assuming below the print window. The properties have been set, document adjusted, page size customized. It works exactly as it's designed (according to Adobe help, their knowledge base, etc) but only up to 129". Can do it at any size, decminal, etc. up to and including 129 inches. Prints beautiful, doesn't get chopped no issues at all. Just hits a wall at 129". Been doing it with blueprints for years. Just never needed it this big. In my case it's not a printer/plotter limitation. It's the Adobe PDF printer which is advertised to be able to cusomize page size to 15,000 inches.
    Tried customizing in post script, no luck there either.
    Again, I very much appreciate the suggestions....
    S.

  • Problems with exporting to PDF

    I create flyers for my wife's real estate business. When I export to PDF, everything looks great, but when she takes the file to her office to print it out, the text sometimes is different and/or underlined or there are black lines randomly appearing on the printed flyer.  Also, the color sometimes is different.  Any ideas?  Please be specific.

    riott.girl wrote:
    OK, just ignore all of that.
    First give us some information. Tell us the version of InDesign you are using (ALWAYS provide the version number). Tell us what OS you are on (ALWAYS tell us the OS). Tell us what OS your wife is using and what program she is using to pritn the PDF, as well as anything you know about her printing. Tell us what PDF preset you are using.

  • Problem with Export to Excel from ALV view.

    Hello @all,
    i have a problem on my webdynpro application. I use the component SALV_WD_TABLE. I become display my data but when i want to export the table to ecel, i became a short dump with the message in the browser: Access via 'NULL' object reference not possible.
    When i look at ST22. The system show this text.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_SALV_WD_A_MODEL_TABLE======CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was no
         caught in
        procedure "IF_SALV_BS_MODEL_COLUMN~GET_HEADER_BIND_DDIC_FIELD" "(METHOD)
         was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: "LR_HEADER").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
        "CL_SALV_WD_A_MODEL_TABLE======CP" or "CL_SALV_WD_A_MODEL_TABLE======CM0
        "IF_SALV_BS_MODEL_COLUMN~GET_HEADER_BIND_DDIC_FIELD"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "IF_SALV_BS_MODEL_COLUMN~GET_HEADER_BIND_DDIC_FIELD" "(METHOD)", or its
      possible occurrence must be declared in the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    Information on where terminated
        Termination occurred in the ABAP program "CL_SALV_WD_A_MODEL_TABLE======CP" -
         in "IF_SALV_BS_MODEL_COLUMN~GET_HEADER_BIND_DDIC_FIELD".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 19
        of the (Include) program "CL_SALV_WD_A_MODEL_TABLE======CM030".
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "IF_SALV_BS_MODEL_COLUMN~GET_HEADER_BIND_DDIC_FIELD" "(METHOD)", but
         it was neither handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_SALV_WD_A_MODEL_TABLE======CP "; its source
         code begins in line
        1 of the (Include program "CL_SALV_WD_A_MODEL_TABLE======CM030 ".
    Source Code Extract
    Line  SourceCde
        1 method if_salv_bs_model_column~get_header_bind_ddic_field.
        2
        3   data:
        4     ls_column type if_salv_bs_model_columns=>s_type_column.
        5
        6   ls_column = me->if_salv_bs_model_columns~get_column( column ).
        7
        8 *... get column
        9   data:
       10     lr_column type ref to cl_salv_wd_column.
       11
       12   lr_column ?= ls_column-r_column.
       13
       14   data:
       15     lr_header type ref to cl_salv_wd_column_header.
       16
       17   lr_header = lr_column->get_header( ).
       18
    >>>>>   value = lr_header->get_ddic_binding_field( ).
       20
       21 endmethod.
    i hope anybody can help me.
    Regards
    Chris

    Dear
    How you resolved this issue please let us know.
    Thanks

  • Problems with Exporting PST files from Exchange 2010 SP1 on SBS2011

    Can you connect to the mailbox with Outlook and export from there?
    If there are just 2 left - might not be worth the effort if you can do another way and be finished....

    Hi Everyone,We are currently preparing to perform the final move from our existing SBS 2011 server for email to Office 365. I am currently going through a list of users and are deleting and backing up mailboxes/accounts as required.I am using the details in this article:http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/This has worked for 12 of the 14 accounts I need to backup to PST. However I get an error saying this cmdlet cannot connect to the source mailbox for two of these mailboxes as in the picture below. Anybody have any ideas on why this is?
    This topic first appeared in the Spiceworks Community

  • Error in character spacing when exporting to pdf from word 07

    I am having trouble with exporting to pdf from MS Word 07.  The character spacing throughout the document is wacky.  This also happens when exporting to pdf from a GIS program.
    Any help?

    I use the term export because that is how it is done in the GIS software that I use - ArcMap 10.
    In MS Word I access Adobe Acrobat Pro 9 through the print menu. I am using Windows 7.
    I do not always have this trouble, but it started yesterday on a 30 page word doc and then after that, it started on an ArcMap doc.
    As for embedding fonts, when I check the Word doc as you suggested, i see many different fonts listed.  Some are embedded, some embedded subset, some are not embedded at all.  I use styles to manage font types and heading levels.  There is nothing fancy about it - all Times New Roman.

  • Export to PDF from Autocad: Acrobat always opens PDF with 'layers panel and page' shown.

    Hello,
    Whenever I export to PDF from Autocad, Adobe Acrobat opens the PDF with the 'Layers Panel and Page' shown.
    Each time I have to manually go to 'Properties' and select 'Page only', close 'Properties' and close the PDF and select to save the changes, in order to show the just the page.
    Is there a way to make PDFs always export to 'Page only' automatically as default?
    Thanks!
    Ione

    Thakns Peter, I had seen this thread, but it doesn't really address my issue. I've exported individual chapters from the book file, all with success, so I know there isn't a file corruption issue.  The problem seems to do more with memory allocation/usage. 
    I have tried: quitting and then immediately exporting the file, and even rebooting and then relanuching and exporting.  Both of these allow me to get a few pages farther along, but still not through the entire book.
    I remember back in the day there used to be a setting for how much RAM/dis c space was allocated to a certain applicatino (I knowm it was a long time ago).  I didn't know if there might be something like this hidden somewhere

  • Problem Exporting as PDF from InDesign CS4 on XP SP3

    Hi guys
    Has anyone else encountered a problem when exporting a PDF file from any of the standard setting within InDesign and a PDF with 0kb file size is generated and obviously wont open in Acrobat
    Any suggestions greatly appreciated
    Regards
    Steve

    I've not seen anything like this. Try replacing the prefs.

  • Problem while exporting to PDF with japanese character in Crystal Report X1

    Hi,
    I am using Crystal report X1 with classic ASP on a Windows 2003 Enterprise Server, SP 2. In my application, I have to export the report into PDF, CSV, DOC formats. I am have Japanese strings in the report. While exporting to PDF, empty boxes has displayed in the place of Japanese string and in CSV file, question mark has been displayed instead of Japanese string. But the Doc file is exported correctly. I have not installed any language support software either in server or in client machine. I have used MS Gothic and Arial Unicode MS fonts for the text-objects which has Japanese strings.
    Please give me a solution so that I will get PDF file with Japanese strings instead of empty box or question mark.
    Do I need to install any language support pack software?
    Thanks in advance.
    Regards,
    Manju

    Hi Don,
    Thank You for your reply. I have resolved the issue of exporting to pdf from crystal report X1 having Japanese data after installing the language pack.
    But when I am exporting to CSV or TXT, i am getting ??? instead of Japanese characters. I have tried "export" through crystal report designer and got ??? instead of Japanese.
    The Crystal report version I am using is Crystal report X1  11.0.0.1282
    Crystal Report Desinger is installed in Windows Xp machine
    Font set for Text object is Arial Unicode MS, MS PMincho, MS PGothic
    Does the Crystal report X1 11.0.0.1282 has the UTF-8 support for CVS / txt
    Please provide me a solution
    Thanks in advance,
    Regards,
    Manju

  • Exporting to PDF from Illustrator ... a problem

    Hi All,
    I'm writing you as I have a small problem  when I export to PDF from Illustrator.
    In Illustrator the size of the page is 21,51X34,71 ... but when I save in PDF the size of the page is 13X14
    I have to save in PDF as the printer is waiting for the file.
    Any help?
    thanks a lot

    thanks for your answer and ... please, sorry me about my less of information.
    I'm using the illustrator CC and the operating system is Os X Yosemite.
    I'm doing exactly .. like that: save As a copy >> PDF
    and I'm using the Adobe Reader ... when the reader opens the file the property of the size page and the drawing change.

  • I'm having problem with exporting video from premiere pro cc 2014

    I'm using Adobe Premiere Pro CC 2014 and I'm having problem with exporting video.
    When I click Export and media, the window for exporting appears and it starts exporting video.
    But after a few minutes, it looks like it has completed exporting video and says there's a bug in exporting.
    It literally says it has a problem with compiling, but I don't know what the real problem is.
    I tried many things like restarting computer and Premire Pro but it's no use.
    But it works when I use Adobe Media Encoder CC 2014 for exporting video.
    If anyone knows any possibilities about why this problem happens, please let me know.

    I'm having a similar issue.  When I go to export my project, I add it to the render queue, set it up with the h.264 settings that I've used with countless past versions of the program, and then hit render.  Randomly, at some point in the process, the render just stops and the ETA just keeps climbing.  I actually had to save an XMF file of the CC 2014 project and bring it into the previous CC version of Premiere just to finish it.  Even a clean re-install of CC 2014 doesn't work.

  • Exporting to PDF from PageMaker 7.0 in Classic

    Since upgrading to 10.4 I have been unable to export to PDF from PageMaker 7.0.1. Adobe tech support says there is a problem with the Adobe Postscript driver. I have downloaded and installed a new Adobe PS driver but still get a message that says Adobe PS cannot be used because of an internal error. There is a code (-30581). Anybody having this problem?

    Did Adobe say your copy might be corrupt, or there was a general incompatibility between AdobePS and your Classic version, or what please?
    I don't happen to know a specific solutioni, but you might try this workaround, even though it sounds rather klunky until you're used to it:
    Use Apple's own Desktop Printer Utility to built a virtual Desktop Printer using Translator Postscript, which will automatically be set as the default Classic printer, even though it doesn't actually appear on the Desktop, and should be accessible through either AdobePS or Apple's own LaserWriter driver.
    Tell that to print to File, which should produce a .ps file that will double-click open in Preview, which can convert to PDF.

  • Problem with printing a PDF

    Hi All,
    I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
    I have a problem with printing a PDF:
    I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    Can anyone help me?
    I wish a great day to You all.

    Hi Ted Ueda,
    sorry for the delay of my answer.
    I understand very well the problems related to security.
    With the following code that I used to produce a report (PDF) at runtime,
    is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
    from RTF previously realized?
    ReportExportControl exportControl = new ReportExportControl();
    String report = report path;
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
    Object reportSource = null;
    reportSource = reportClientDoc.getReportSource();
    //The method setConnectionProperties() stores all the connection parameters in the collection
    //ConnectioInfos
    ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
    exportControl.setEnableLogonPrompt(false);
    exportControl.setEnableParameterPrompt(false);
    exportControl.setReportSource(reportSource);
    exportControl.setDatabaseLogonInfos(connInfos);
    //Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
    //ParameterFieldDiscreteValue
    setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
    ExportOptions exportOptions = new ExportOptions();
    //Set the export format (PDF)
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
    exportOptions.setFormatOptions(PDFExpOpts);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    try {
          exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
    } catch (ReportSDKExceptionBase e) {
    throw new ApplicationException("error code", ": error message"); }               
    As, however, I predicted in my previous message about the direct printing on the client,
    I read about ActiveX, but I don't know how to use them.
    I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
    "In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
    The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
    1)     AcroRd32.exe /p /h FILENAME
    where
    /p = print
    /h = hide window
    to print the report and
    2)     tkill AcroRd32
    to close Adobe Reader, because it doesn't end automatically after printing and the command  /h  is used just to minimize the process.
    I hope you can give me advice because I need to print directly on the client. Thank you

Maybe you are looking for

  • Save as PDF crashes every application

    When I select Print > Save as PDF, it immediately crashes any application that I am in. I cannot create PDFs anymore, tried Safari, Mail, Chrome, TextEdit, Word. Word's Error Reporting tool gave this error info: Error Signature: Exception: EXC_BAD_AC

  • Billing date issue - system date as default.

    Hi , We have a requirement to consider billing date as the system date in creating the billing document. Requirement. 1. Sales Order is created and Blocked. 2. Sales Order is released the next month. 3. Billing document is created (manually or Batch)

  • Russian Characters not in UTF-8 format - File Receiver

    Hello, My scenario is Idoc to File.  My SAP sender system is a Unicode system and my RFC connection to XI is also set to a unicode connection.  My idoc is sent to XI ok and whenever I look at the payload in sxmb_moni, I see the Russian characters ok,

  • I can't buy CC

    Hi. I want to buy CC with that special offer for cs customers but Adobe doesn't let me. When I enter the serial of my cs6 licence I'm not granted the offer altough the serial is registered in my profile. What now?

  • Is it possible to have editable text field in interactive report?

    Is it possible to have editable text field in interactive report? Thanks, Dip