Internal error while creating pdf files

Good morning.
I have problems while creating pdf files from FM documents,using FM9: I get an internal error, see here an example:
=== Header Begin ===
Internal Error: 9004, 6921628, 9677518, 0
FrameMaker 9.0.0 for Intel
Build: 9.0p255
Window System: MSWindows
Operating System: Windows NT 5.1 (major.minor.build: 5.1.2600 Service Pack 3)
Generated on: venerdì 30 marzo 2012 11.38.51
To file: C:\Documents and Settings\itgzeanlo\Dati applicazioni\Adobe\FrameMaker\9\FrameLog_12.03.30_11.38.51.txt
=== Header End ===
=== Stack Trace Begin ===
$699d9c
$93aace
=== Stack Trace End ===
=== Open Window List Begin ===
# not implemented
=== Open Window List End ===
=== Recent Commands Begin ===
=== Recent Commands End ===
=== Recent API Calls Begin ===
# not implemented
=== Recent API Calls End ===
=== Windows Relocation Information Begin ===
Application: 00400000
FrameMaker.exe: 00400000 00979000
ntdll.dll: 7c910000 000b8000
I don't have a clue of what's wrong. I tried to uninstall the software and then to install it again, with the same result.
Can you please help me?
Kind regards.
Antonio Locati

> Getting back to your issue - how are you trying to create a PDF? Save As or printing to the AdobePDF printer instance?
I've tried in both ways, and it's exactly the same: I get the error.
> If XP, have you installed the MS hotfix?
Windows is regularly updated through Windows Update.
> What's in your FM doc?
The document is based on some tables (it's a pricelist for our products), there are also some links to some .eps files (which are correctly displayed on screen, so the path is correct).
> Did it work before or has it changed and now errors out?
The file (or better the book made of about fifteen FM files) was created by someone else, on another PC. When I open it, I get the error. When I send my files to another person, he can create pdf files without any problem.
> Does it update without any errors?
Yes, I regularly update Framemaker without any error.
Thanks for your help!!

Similar Messages

  • Error while creating control file

    hi
    i am getting following error while creating controll file
    QL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  629145600 bytes
    Fixed Size                  1250548 bytes
    Variable Size             171969292 bytes
    Database Buffers          452984832 bytes
    Redo Buffers                2940928 bytes
    SQL> @c:\study\rose\c.sql
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    1  CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS  froce logging NOARCHIVELOG
    2      MAXLOGFILES 32
    3      MAXLOGMEMBERS 2
    4      MAXDATAFILES 32
    5      MAXINSTANCES 16
    6      MAXLOGHISTORY 1752
    7  LOGFILE
    8  GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA'  SIZE 50M,
    9    GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA'  SIZE 50M,
    10   GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG'  SIZE 25M,
    11*   GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG'  SIZE 25M
    SQL>

    CHETAN YADAV wrote:
    hi
    i am getting following error while creating controll file
    QL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  629145600 bytes
    Fixed Size                  1250548 bytes
    Variable Size             171969292 bytes
    Database Buffers          452984832 bytes
    Redo Buffers                2940928 bytes
    SQL> @c:\study\rose\c.sqlWe can't debug what we can't see. And what we can't see is the contents of "c:\study\rose\c.sql".
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
    2 MAXLOGFILES 32
    3 MAXLOGMEMBERS 2
    4 MAXDATAFILES 32
    5 MAXINSTANCES 16
    6 MAXLOGHISTORY 1752
    7 LOGFILE
    8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
    9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
    10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
    11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
    SQL>

  • Error while creating PDF object

    We are using Adobe Interactive Forms with Guided Procedures.  Netweaver 7.0 SP14 (Dual stack Java & Abap).  All was working well it appears until we configured SSL for ADS - don't know for sure if this caused the problem but it is the only change we can identify around the time that our problems began.
    When we attempt to Create an Impersonalized Form we receive the following error -
    Cannot retrieve template structure: Execution ended in an unrecognized state
    When we attempt to test a callable object associated with an interactive form we receive -
    Error while creating PDF object: PDF object could not be created; object returned from ADS is null.
    In both cases the entries in the default trace log are the same -
    Service XMLFormService: Native process (PID=0) /usr/sap/UFD/DVEBMGS02/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 134
    PDF object could not be created; object returned from ADS is null
    com.sap.caf.eu.gp.base.exception.EngineException: PDF object could not be created; object returned from ADS is null
    at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.createInstanceDocument(AdobePDFAdapter.java:542)
    at com.sap.caf.eu.gp.model.iforms.preproc.FormPreprocessor.execute(FormPreprocessor.java:507)
    Like I mentioned earlier this functionality was working successfully in our environment at one time.
    Any guidance in this matter would be greatly appreciated.
    Thanks,
    Joe

    Joe,
    If you originally configured ADS without SSL, I would recommend going back through the ADS Configuration Guide for your NetWeaver stack and make sure all the necessary changes for SSL were made.  I've seen another case where a step was missed in SSL configuration for ADS which caused a form to error.
    If everything looks good based on your SSL configuration, I would recommend creating an OSS Note.
    -Matt

  • Error while creating logical file using transaction FILE

    Hello there,
    I am facing an error while creating Logical File name definition using transaction FILE
    This is the input which I'm trying to give
    Logical file name: ZTEST
    Name : ZTEST
    Physical file : ZTEST_1<DATE><TIME>.csv
    Data format: ASC
    Application area: BW
    Logical path:ZTEST_1_DATAOUT
    when I tried to save it throws me an error like  ASSIGN_SUBSTRING_NOT_ALLOWED
    Please help.

    Hi,
    Please check the OSS Notes :
    Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
    SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
    Hope this solves the problem.
    -Vikram

  • Error while creating cap file

    while creating Cap file through converter , error is coming Class helloworld does not belong to this package while giving the same package path where it is existing physically. i m using javacard version 2.2.1 and J2SE 1.4

    Hi Joseph
    Thanks and accept my regards. Now I am able to create the .cap file. but I am facing another problem. I am developing a sim application but I am not able to find the sim.toolkit libraries. Can you plz guide me, where i would find the libraries.

  • Error  while  reading pdf file using adobe reader 8

    Hi ,
    I am using itextsharp for creating pdf file which contains 300 pages.
    When I tried to open that pdf file in adobe reader 5 , there is no issue . Its opening correctly. But When I 've tried to open it using adobe reader 8 . Its opening the file but I could read upto 156 pages out of 300. I couldn't read beyond that. Its displaying the following error message "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem" , "could not find the XObject named 'Xf2'." .
    Please help me to resolve the issue.
    Thanks,
    Tamil.

    Hi ,
    I am using itextsharp for creating pdf file which contains 300 pages.
    When I tried to open that pdf file in adobe reader 5 , there is no issue . Its opening correctly. But When I 've tried to open it using adobe reader 8 . Its opening the file but I could read upto 156 pages out of 300. I couldn't read beyond that. Its displaying the following error message "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem" , "could not find the XObject named 'Xf2'." .
    Please help me to resolve the issue.
    Thanks,
    Tamil.

  • Error while opening PDF file created in SAP System

    Dear Friends,
    We have customized transaction through which a Inspection Lot gets generated with predeifned Inspection Characteristics data. User enters the reading in that Inspection Lot and SAVE. In another customized transaction, this Inspection Lots gets Released and when released, SAP System generates PDF file through this custmized program and send it to repspective Mangers through SAP Inbox for view. Before 07.10.2010, this was working correctly. On 08.10.2010, our Basis team has applied patches provided by SAP. Afte that the generated PDF file can not be open. Error message shows that this file is damaged OR corrupted.
    We wrote to SAP support but they advise to contact DAP Forum for the customized program, SAP supprt will not help.
    We need help to overcome this issue.
    Regards,
    Jayant Joshi - Bahrain

    Hi,
      Find out the FM that's generating the actual error through de-bug and analyze the same by looking in OSS and or SDN.
    Regards
    Narasimhan

  • Error While Opening PDF File in SAP Inbox

    Hello Experts,
    I am facing a weird error in SAP Inbox while opening a PDF files (both created by custom ABAP programs as well as the one attached to a new SAP Inbox message from my desktop & sent to my Inbox as a test).
    The error states that "This file does not have a program associated with it for performing this action. Please install program or, if one is already installed, create an association in the Default Programs control panel.".
    I checked TCode DC30 also & found an appropriate program is already maintained for PDF.
    I couldn't make out more out of this error message. Any inputs in this regard will be highly appreciable.
    Regards,
    Shaurya

    Hi,
      Find out the FM that's generating the actual error through de-bug and analyze the same by looking in OSS and or SDN.
    Regards
    Narasimhan

  • PDE-PER001 INTERNAL ERROR while generating pdf

    Hello,
    I am tryin to generate a pdf file from a report attached to menu.
    But every time its showing me this error
    PDE-PER001 INTERNAL ERROR
    unhandled internal CA Error
    But when i generate the same through report builder, pdf file get genrated.
    I dont have any idea to how to resolve this problem.
    Kindly suggest me some solution.
    Thank you!

    There are a lot of things that you do to try and fix strange errors like these.
    1) NOT FORWARD COMPATIBLE
    I think I have seen this error when you save a file in a newer version (Forms 9)
    and then try and open it in an older version (Forms 6) - rather than the other way round
    that you are describing.
    Please provide the two versions of forms that you are dealing with.
    2) TOO MANY FILES OPEN
    This error can occur when you have too many files open in Forms Builder at once.
    Does the problem occur when you only have one file open ?
    Does the problem occur when you have started Forms Builder, then opened a single file ?
    3) LOG OFF / ON
    Strange errors like this can often be fixed by logging off, then close the file, then open it,
    then logon, then do a compile all code (CTRL SHIFT K), then save.
    After that you can do a compile (CTRL T) to create the runtime FMX
    4) COMPILING
    Files can be dependent on other files, so make sure you
    Upgrade and Compile the files in the following order.
    * PLL Libraries
    open each library
    Make sure you do this in the correct order.
    the highest level libraries first as libraries can be attached to other libraries.
    do a full compile (SHIFT CTRL K)
    then an incremental compile (CTRL K)
    - this second compile often fixed problems in the past, probably not needed now but worth a try
    save.
    * Referenced forms *.FMB and object libraries *.OLB
    To upgrade these open each one, then save
    You dont need to compile these.
    * The actual form
    disconnect, open file, connect, full compile code (CTRL SHIFT K), generate FMX (CTRL T), save, close, open
    5) CONVERT TO TEXT, THEN BACK TO BINARY
    File corruption problems can often be fixed by converting the file to a text file, then back to binary. In Forms 6 use "File -> Administration -> Convert" Forms 9 and 10 use "File -> Convert". Convert Forms from FMB to FMT and back to FMB again. For libraries use PLL > PLD > PLL. Object Libraries Same OLD > OLT > OLB. Also do the same for any referenced forms.

  • Error while opening .PDF files in document library sharepoint 2013

    Hi
    I am getting an error while opening a .pdf file,
    Please help me find the solution.
    Thanks
    Paru

    Launch IE -> Click on Gear (settings) -> Manage Add-ons -> Show: All Add-ons ->
    There are 2 Adobe Add-ons:
    Adobe PDF Reader  &  Adobe Acrobat Sharepoint Open Document
    Double-click both and be sure to click the button "ALLOW ON ALL SITES"
    (An * will appear in the field)
     http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ae2eea40-9fa6-46be-bca1-ac5eb5597d5e/sharepoint-2010-adobe-reader-error-opening-pdf-files?forum=sharepointgeneralprevious
    http://community.office365.com/en-us/f/154/t/46204.aspx?PageIndex=2
    disable the Mcafee Firewall Plug In.  This is after of course I ran superantispyware to remove some malware.  uninstalled and reinstalled the Adobe Reade
    https://forums.adobe.com/message/1776202?tstart=0

  • Error while downloading PDF file from FTP Server

    Hi Friends,
    I have sent a PDF file with data to FTP , Then i want to check that uploaded pdf file , whether that is correct or not?
    for that , i have downloaded that file from FTP and i am trying to open the file . but it is giving this problem .
    "There was an error opening the document . The file is damaged and could not be repaired."
    will you suggest me regarding this.
    thanks in advance.
    balaji.T.

    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
              EXPORTING
           SRC_SPOOLID                    = spoolno
                src_spoolid                    = wa_file-rqident
                no_dialog                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
              IMPORTING
                pdf_bytecount                  = numbytes
                pdf_spoolid                    = pdfspoolid
          OTF_PAGECOUNT                  =
                btc_jobname                    = jobname
                btc_jobcount                   = jobcount
              TABLES
                pdf                            = pdf
              EXCEPTIONS
                err_no_otf_spooljob            = 1
                err_no_spooljob                = 2
                err_no_permission              = 3
                err_conv_not_possible          = 4
                err_bad_dstdevice              = 5
                user_cancelled                 = 6
                err_spoolerror                 = 7
                err_temseerror                 = 8
                err_btcjob_open_failed         = 9
                err_btcjob_submit_failed       = 10
                err_btcjob_close_failed        = 11.
    because of this one PDF internal table is obtained.
           OPEN DATASET L_FILENAME  FOR OUTPUT in text mode  MESSAGE MSG.
      LOOP AT pdf.
        CONCATENATE pdf-tdformat       "Material group
                     pdf-TDLINE       "Basic Material
               INTO ITEXT-TLINE ..
        APPEND ITEXT.
        TRANSFER ITEXT TO L_FILENAME.
      ENDLOOP.

  • Error while creating Ear File for project Containing (WAR+MAR) in jdev

    hi,
    I am trying to deploy my adf application containing MDS customization.While creating EAR from application properties--->deploy--->deploye to EAR i am getting following error.
    Wrote MAR file to C:\JDeveloper\mywork\MDSApp\deploy\AutoGeneratedMar.mar
    [04:40:07 PM] Wrote Web Application Module to C:\JDeveloper\mywork\MDSApp\ViewController\deploy\MDSApp_ViewController_webapp1.war
    *[04:40:07 PM] Warning: Some of the customization documents under '/' are packaged as part of WAR. This metadata cannot be accessed from WAR using MDS.*
    *[04:40:07 PM] Info: Namespace '/xliffbundles' is mapped to deploy-target metadata-store-usage 'MAR_TargetRepos' in adf-config.xml but no metadata from the namespace is included in the MAR*.
    [04:40:07 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\MDSApp\deploy\MDSApp_application1.ear
    [04:40:07 PM] Elapsed time for deployment: 4 seconds
    [04:40:07 PM] ---- Deployment finished. ----
    my adf-config.xml is as below
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
    <adf-property name="adfAppUID" value="MDSApp-3718"/>
    </adf:adf-properties-child>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
    credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    <sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
    jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
    authorizationEnforce="true"
    authenticationRequire="true"/>
    </sec:adf-security-child>
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
    <cust-config>
    <match path="/">
    <customization-class name="oracle.model.mycompany.SiteCC"/>
    <customization-class name="oracle.adf.share.config.UserCC"/>
    </match>
    </cust-config>
    <persistence-config>
    <metadata-namespaces>
    <namespace path="/xliffbundles" metadata-store-usage="MAR_TargetRepos"/>
    </metadata-namespaces>
    <metadata-store-usages >
    <metadata-store-usage id="MAR_TargetRepos" deploy-target="true">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jndi-datasource" value="jdbc/mds/DEV_MDS"/>
    <property name="partition-name" value="part1"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
    <taglib-config>
    <taglib uri="http://xmlns.oracle.com/adf/faces/rich">
    <tag name="column">
    <attribute name="displayIndex">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="frozen">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="noWrap">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="selected">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="visible">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="width">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="showDetailHeader">
    <attribute name="disclosed">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="panelSplitter">
    <attribute name="collapsed">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="splitterPosition">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    </taglib>
    </taglib-config>
    <persistent-change-manager>
    <persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
    </persistent-change-manager>
    </adf-faces-config>
    </adf-config>

    hi frank,
    If you have any idea plz reply...We r stucked with metadat-namespace path attribute.

  • Getting an error while copying pdf file into RMS enabled document library using copyTo() method

    In SharePoint 2010, I am trying to copy pdf file programmatically from a non-RMS protected document library into RMS protected library using copyTo() method.
    But I am getting an error while doing so. it gives error as mentioned below -
    This library does not accept files of the given type. You must either upload a
    new, unprotected file that supports rights management or re-upload a document
    that was previously downloaded from this library.
    Please suggest some solution.
    Thanks,

    Are You sure that you have give 'PDF' in caps in your program? and check whether you are getting all the datas before calling the method.
    in my program, i have used like this and it is working fine for me,
    I am getting PDF content from the form...
    DATA  ls_formoutput     TYPE fpformoutput.
      DATA  pdf_content        TYPE solix_tab.
      DATA  lp_pdf_size        TYPE so_obj_len.
    DATA  lv_mail_title      TYPE so_obj_des.
    *Attach the PDF .
          lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).
          pdf_content = cl_document_bcs=>xstring_to_solix(
              ip_xstring = ls_formoutput-pdf ).
          document->add_attachment(
            i_attachment_type     = 'PDF'
            i_att_content_hex     = pdf_content
            i_attachment_size     = lp_pdf_size
            i_attachment_subject  = lv_mail_title ) .

  • Error while opening PDF file downloaded  from database Blob column

    Hi All,
    I am working on jdev 11.1.1.4.0.
    In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
    After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
    or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
    When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
    I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
    Thanks
    Kanika

    Thanks a lot Timo...!!!
    I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
    Here is the code snippet ..
    byte[] buff;
    buff = new byte[(int)length]; -- Length is the file size
    int bytesRead = is.read(buff);
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = is.read();
    int b = is.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    BlobDomain blobDomian = new BlobDomain((buff));
    TestVORow = (TestVORow Impl)TestVO.createRow();
    if(blobDomian != null) {
    TestVORow.setAttachment(blobDomian);
    am.getTransaction().commit();
    This seems to be Ok to me..the same issue, file is still corrupting.
    Any thoughts from your side ???
    Thanks
    Kanika
    The problem is resolved.
    Changes made are instead of
    InputStream is;
    used ... BufferedInputStream bis ;
    and after
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = bis.read();
    int b = bis.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    bis.close(); // use this close bufferedInput Stream.
    Able to open each and every file now..Thanks for your suggestions Timo and Frank.
    Edited by: Kanika on Mar 6, 2012 3:15 AM

  • Error while Generating PDF file from Datagridview .

    Hi every one,
         I'm trying to generate pdf file from datagridview,while executing my code getting nullvalue exception..
    Here is my code:
    private void btnexportPDF_Click(object sender, EventArgs e)
                //Creating iTextSharp Table from the DataTable data
                PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
                pdfTable.DefaultCell.Padding = 3;
                pdfTable.WidthPercentage = 30;
                pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
                pdfTable.DefaultCell.BorderWidth = 1;
                //Adding Header row
                foreach (DataGridViewColumn column in dataGridView1.Columns)
                    PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
                    cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                    pdfTable.AddCell(cell);
                //Adding DataRow
                foreach (DataGridViewRow row in dataGridView1.Rows)
                    foreach (DataGridViewCell cell in row.Cells)
                        pdfTable.AddCell(cell.Value.ToString());//nullvalue exception
                //Exporting to PDF
                string folderPath = "C:\\PDFs\\";
                if (!Directory.Exists(folderPath))
                    Directory.CreateDirectory(folderPath);
                using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
                    Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
                    PdfWriter.GetInstance(pdfDoc, stream);
                    pdfDoc.Open();
                    pdfDoc.Add(pdfTable);
                    pdfDoc.Close();
                    stream.Close();
    Thanks & Regards RAJENDRAN M

    Hi Rajendran,
    The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
    http://support.itextpdf.com/forum
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Get millisecond values from timestamp column in v$logmnr_contents

    Hello How do we get millisecond values from timestamp column in v$logmnr_contents. I tried with following query. select scn,To_Char(timestamp,'DD-MON-YYYY HH24:MI:SS:FF') from v$logmnr_contents WHERE OPERATION NOT IN('START') and username ='SCOTT' an

  • Can't Login to Firefox Sync on my Computer but I can Login in Firefox Home on my iPhone

    I had Firefox 4 beta installed along side firefox 3.6 before firefox 4 was released. After firefox 4 was released, I uninstalled the beta (ensuring not to delete my prefrences when uninstalling). Then I started up firefox 3.6 and I noticed that all m

  • Error message while transporting SapScript to productive system

    Hi, I have tried to transport an order sapscript form (modified Medruck) into the productive system. But I got errors in transaction stms. The error message is displayed like this: <b>R3TRFORMZMEDRUCKN</b> was repaired in this system Message no. <b>T

  • Total CPU of AWR Report

    How to interpret % of total CPU for Instance and % of busy CPU for Instance under of AWR Report. acs

  • Hisses and pops in both Final Cuts

    Hey guys, I've been having some weird problems. Since I upgraded from Final Cut Express to Final Cut Pro, all my video (both rendered and exported to various formats) have hisses and pops in the audio. The problem now also occurs in Express. Did an a