Error while trying to open exported PDF file from Datagridview??

Hi everyone ,
   I want to export datagridview to PDF file,After generating the pdf I'm not able to open that file..when i try to open it shows file corrupted error message and also not getting "Pdf Generation successfully " Message.
Here is my code :
private void btnExportPdf_Click(string heading, string filename)
            try
                SaveFileDialog saveFileDialog = new SaveFileDialog();
                saveFileDialog.Filter = "All Files | *.*  ";
                if (saveFileDialog.ShowDialog() == DialogResult.OK)
                    string path = saveFileDialog.FileName;
                    Document pdfdoc = new Document(PageSize.A4); // Setting the page size for the PDF
                    PdfWriter writer = PdfWriter.GetInstance(pdfdoc, new FileStream(path + ".pdf", FileMode.Create)); //Using the PDF Writer class to generate the PDF
                    writer.PageEvent = new PDFFooter();
                    // Opening the PDF to write the data from the textbox
                    PdfPTable table = new PdfPTable(dataGridView1.Columns.Count);
                    //table.TotalWidth = GridView.Width;
                    float[] widths = new float[] 
                        dataGridView1.Columns[0].Width, dataGridView1.Columns[1].Width, dataGridView1.Columns[2].Width 
                    table.SetWidths(widths);
                    table.HorizontalAlignment = 1; // 0 - left, 1 - center, 2 - right;
                    table.SpacingBefore = 2.0F;
                    PdfPCell cell = null;
                    pdfdoc.Open();
                    //doc.Open();
                    //   Phrase p = new Phrase(new Chunk(heading, titleFont));
                    // doc.Add(p);
                    foreach (DataGridViewColumn c in dataGridView1.Columns)
                        cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText)));
                        cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                        cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                        table.AddCell(cell);
                    if (dataGridView1.Rows.Count > 0)
                        for (int i = 0; i < dataGridView1.Rows.Count; i++)
                            PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                            for (int j = 0; j < dataGridView1.Columns.Count - 1; j++)
                                cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString()));
                                cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                                cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                                table.AddCell(cell);
                                //lstCells.Add(cell);
                                objcell[j] = cell;
                            PdfPRow newrow = new PdfPRow(objcell);
                            table.Rows.Add(newrow);
                    pdfdoc.Add(table);
                    MessageBox.Show("Pdf Generation Successfully.");
                    pdfdoc.Close();
            catch (Exception ex)
                MessageBox.Show("Error in pdf Generation.");
Thanks & Regards RAJENDRAN M

Your question sounds like it is related to PdfWriter as that is how you're saving the file.  These forums are for MS products.  Please post questions related to third-party products in their forums.

Similar Messages

  • I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read"

    I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read". I am able to open pdf files in IE and other programs.

    I am encountering the same problem -- though with .qfx files from my bank. This worked fine in Firefox 31 ESR, but since upgrading to Firefox 33.0, I get the "<name>.qfx.part could not be saved, because the source file could not be read" when I attempt to download. (I should add that downloading PDF statements from the same site works fine, and that the qfx downloads work fine in IE and Chrome.)
    I tried safe mode, it is still broken. Tried v34 beta, no luck. I reverted to version 31, it works again.
    I guess I will stick with the older version until a solution is found...or just use an alternate browser to download my financial data.

  • I get an error when trying to open certain PDF files in Lion on Mac.

    I am having trouble opening CERTAIN .PDF files on my MacBook Pro. I am running Lion. The file is attached to a Gmail message as a standard .PDF file.
    This is my error:
    "File "XX" cannot be opened. It may be damaged or use a file format Preview does not recognize."
    I have also downloaded Adobe X reader to see if the compatibility issue is just with Preview. I get an error that the file is "damaged" and cannot be recovered. Meanwhile, the file downloads/opens just fine on Windows XP Office and iOS (on my iPad). So I am thinking that it must be some sort of compatibility issue with Lion.
    So far, other .PDF files open on my MB Pro. I haven't tried all of my saved .PDF files, but I did try a couple.
    Anybody have any suggestions? There seems to be an error with this particular file opening in Lion, but not with the same file opening on another operating system.

    The issue mysteriously resolved itself. I shut down the computer, and the next day I booted back up and tried to open the same file, and everything was OK. Very bizarre, since I had opened it previously on this same MacBook. Anyway, anyone have any insight into what happened?

  • Webutil error while trying to open an excel file

    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Excepción
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks
    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Exception
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks

    I created a system DSN named odbc_excel. Then, I created a file named initexcelsid.ora with the following arguments:
    HS_FDS_CONNECT_INFO = odbc_excel
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = dg4odbc
    In the location, I put excelsid in the Service_Name entry. Do you need me to post the listener.ora file or something else?
    Thank you.

  • Error while trying to Insert a pdf file in database

    Hi All,
    I have sent this problem to Informix. By any chance if you had faced the same problem and found the solution, pls send mail to [email protected]
    Thanks
    Babu
    Hi there,
    I tried to insert a pdf file in to Informix database. I followed the guidelines
    given in the "InformixJDBC Driver
    Programmer's Guide". Actually my program works if i use
    PreparedStatement.setBytes method. But why
    PreparedStatement.setBinaryStream method is not working????.
    Here is the code snippet.....
    Connection conn = null;
    PreparedStatement ps = null;
    try
    File ff = new File("C:\\test.pdf");
    InputStream value = null;
    FileInputStream fileinp = new FileInputStream(ff);
    value = (InputStream) value;
    int len = (int) ff.length();
    System.out.println("len: " + len);
    conn = connect();
    String sql = "INSERT INTO dbep04m@inf10004:pg_wip_t (c_db,n_object,u_img) VALUES (\"2\",?,?)";
    if (conn != null)
    long stTime = System.currentTimeMillis();
    ps = conn.prepareStatement(sql);
    for (int ii=1;ii<=10000;ii++)
    ps.setInt(1,ii);
    ps.setBinaryStream(2,value,len);
    int rtVal = ps.executeUpdate();
    //System.out.println("return value" + rtVal);
    ps.close();
    conn.close();
    long endTime = System.currentTimeMillis();
    System.out.println("Total time taken for this run: " + (endTime-stTime)/(1000) + " seconds");
    catch (FileNotFoundException ex)
    ex.printStackTrace();
    catch (IOException ex)
    ex.printStackTrace();
    catch (SQLException ex)
    ex.printStackTrace();
    finally
    try
    if (ps != null)
    ps.close();
    if (conn != null)
    conn.close();
    catch (SQLException ex)
    ex.printStackTrace();
    I am getting the following error message.......
    java.sql.SQLException: Insufficient Blob data
    at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java)
    at com.informix.jdbc.IfxSqli.sendStreamBlob(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendBlob(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendBind(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendExecute(IfxSqli.java)
    at com.informix.jdbc.IfxSqli.sendCommand(IfxSqli.java)
    at com.informix.jdbc.IfxSqli.executeCommand(IfxSqli.java)
    at com.informix.jdbc.IfxResultSet.executeUpdate(IfxResultSet.java)
    at com.informix.jdbc.IfxStatement.executeUpdateImpl(IfxStatement.java)
    at com.informix.jdbc.IfxPreparedStatement.executeUpdate(IfxPreparedStatement.java)
    at com.aexp.eaim.iu.isp.testcase.InsertBlob.insertUsingSql(InsertBlob.java, Compiled Code)
    at com.aexp.eaim.iu.isp.testcase.InsertBlob.main(InsertBlob.java:194)
    Here is the example given in the "Informix JDBC Driver Programmer's Guide". In the line maked bold, the blob size was hard coded as 10. Then
    why you are trying to find the file length???.
    try
    stmt = conn.createStatement();
    stmt.executeUpdate("create table tab1(col1 byte)");
    catch ( SQLException e)
    System.out.println("Failed to create table ..." + e.getMessage());
    System.out.println("Trying to insert data using Prepare Statement ...");
    try
    pstmt = conn.prepareStatement("insert into tab1 values (?)");
    catch (SQLException e)
    System.out.println("Failed to Insert into tab:" + e.toString());
    File file = new File("data.dat");
    int fileLength = (int) file.length();
    InputStream value = null;
    FileInputStream fileinp = null;
    int row = 0;
    String str = null;
    int rc = 0;
    ResultSet rs = null;
    System.out.println("Inserting data ...\n");
    try
    fileinp = new FileInputStream(file);
    value = (InputStream)fileinp;
    catch (Exception e) {}
    try
    pstmt.setBinaryStream(1,value,10); //set 1st column
    catch (SQLException e)
    System.out.println("Unable to set parameter");
    set_execute();
    public static void set_execute()
    try
    pstmt.executeUpdate();
    catch (SQLException e)
    System.out.println("Failed to Insert into tab:" + e.toString());
    e.printStackTrace();
    Best Regards
    Babu

    sorry!!!. There is an error in the code
    old code :
    value = (InputStream) value ;
    should be code :
    value = (InputStream) fileinp;

  • Error while trying to open the template library from a client - ver4.2

    I receive the message below when trying to open the tempalte library (have refreshed cache, reproc security).
    Any help is appreciated.  All other functions seem to work except the eAnalyze template library:
    T          "he description information is missing.  Do you want to update your template information from the server?"
                 Yes or No
    Yes u2013 prompts a u2018download fileu2019 refresh.  It returns u201Cupdate Completeu201D, select OK and get the following message:
                  "Description information is missing.  Please contact your administrator."

    I have moved this thread to the [BPC MS forum|SAP Planning and Consolidation, version for the Microsoft platform;.  Notice the sticky [note|Please do not post BPC, SSM or FI/CO questions here!; at the top of the FPM - General (PCM, FC, Other) Forum whereby we announced new dedicated forums for BPC which are the proper place to post your questions regarding BPC in the future.
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Customer Solutions Adoption (CSA) team

  • Receiving error  message while trying to insert a pdf file into a Word document

    Error while trying to insert a pdf file as object into a word documnet , error: "The program used to create this object is AcroExch. That program is either not installed on your computer or it is not responding.

    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • Exporting PDF files from SSRS 2012 - "There was an error opening this document. The file is damaged and could not be repaired"

    Good day
    I have the situation where we are exporting PDF files from reporting services in our website. 
    When dividing the data into sections, the report exports perfectly, but when exporting the entire set and trying to open the file, we get the following error in Adobe Reader:
    "There was an error opening this document.  The file is damaged and could not be repaired"
    We tried to repair the file, no luck.  We tried to use different PDF readers, no luck
    We then checked the file sizes.  When exporting the subsections, each section exports a file of about 2mb. 
    When exporting the entire set, the file is about 1.3mb. 
    Adding all the sections together gives me a rough estimate of 40mb.
    Exporting to TIFF works beautifully and returns a file of 41.5mb. Word and Excel formats also work well, only issue there is the page numbering and formatting.
     The problem we have is the clients are adamant about having it in PDF format.
    Any advice please?

    This was one of the temporary suggestions I gave the client...
    Unfortunately they do not like this as the page numbering and formatting in Word does not appear right.  We are talking about over 1300 pages.  I can't expect them to change the formatting with each export.  Additionally,  the data is
    constantly changing and each client has their own data.  The clients export the reports randomly.  I therefore can't post the reports back onto the server.
    Thanks for the speedy response though

  • Error while trying to open the discoverer connections page

    Dears,
    please your kindly help!!!
    Error while trying to open the discoverer connections page
    When I tried to open the link http://192.168.4.222:7778/discoverer/viewer
    I received the error:
    An error occurred while handling the event. See the application log for more details.
    A fatal application error has occurred. Please consult with your OracleAS administrator or look at the application log file.
    I checked the OC4J application.log file and I found the following:
    10/03/11 10:34:16 discoverer: [ERROR] [AJPRequestHandler-ApplicationServerThread-6] oracle.discoverer.applications.framework.
    GlobalExceptionHandler.execute null
    java.lang.NullPointerException
    at java.io.FileOutputStream.<init>(FileOutputStream.java:172)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at java.awt.Font$2.run(Font.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Font.createFont(Font.java:600)
    at oracle.discoverer.renderer.pdf.XDOConfig._discoverFonts(Unknown Source)
    at oracle.discoverer.renderer.pdf.XDOConfig.<init>(Unknown Source)
    at oracle.discoverer.renderer.pdf.XDOConfig.getNewInstance(Unknown Source)
    at oracle.discoverer.renderer.pdf.PDFGenerator.initPDF(Unknown Source)
    at oracle.discoverer.applications.viewer.model.ViewerApplication.init(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationFactory.create(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationController.getApplication(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationController.execute(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forward(ServletRequestDispatcher.java:222)
    at oracle.discoverer.applications.viewer.url.URLServlet._process(Unknown Source)
    at oracle.discoverer.applications.viewer.url.URLServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFil
    ter(ResourceFilterChain.java:65)
    at oracle.discoverer.applications.framework.ApplicationEncodingFilter.doFilter(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    invoke(ServletRequestDispatcher.java:663)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.proces
    sRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJP
    RequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJP
    RequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor
    $MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    10/03/11 10:34:16 discoverer: [ERROR] [AJPRequestHandler-ApplicationServerThread-6] oracle.discoverer.applications.framework.
    ApplicationController._logException error.handling.event
    oracle.discoverer.applications.framework.ApplicationException: error.handling.event
    at oracle.discoverer.applications.framework.GlobalExceptionHandler.execute(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:553)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forward(ServletRequestDispatcher.java:222)
    at oracle.discoverer.applications.viewer.url.URLServlet._process(Unknown Source)
    at oracle.discoverer.applications.viewer.url.URLServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFil
    ter(ResourceFilterChain.java:65)
    at oracle.discoverer.applications.framework.ApplicationEncodingFilter.doFilter(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    invoke(ServletRequestDispatcher.java:663)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.
    forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.proces
    sRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJP
    RequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJP
    RequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor
    $MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
    at java.io.FileOutputStream.<init>(FileOutputStream.java:172)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at java.awt.Font$2.run(Font.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Font.createFont(Font.java:600)
    at oracle.discoverer.renderer.pdf.XDOConfig._discoverFonts(Unknown Source)
    at oracle.discoverer.renderer.pdf.XDOConfig.<init>(Unknown Source)
    at oracle.discoverer.renderer.pdf.XDOConfig.getNewInstance(Unknown Source)
    at oracle.discoverer.renderer.pdf.PDFGenerator.initPDF(Unknown Source)
    at oracle.discoverer.applications.viewer.model.ViewerApplication.init(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationFactory.create(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationController.getApplication(Unknown Source)
    at oracle.discoverer.applications.framework.ApplicationController.execute(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    ... 21 more
    10/03/11 10:34:16 discoverer: TemplateUINode, localName='documentTemplate': /u01/oracle/ias/j2ee/OC4J_BI_Forms/applications/d
    iscoverer/discoverer/cabo/styles/dc-blaf.xss: Parsing error, line 5, column 22: <laf> is not an understood element.
    This sometimes means the element's namespace (http://xmlns.oracle.com/uix/style) is set incorrectly. This may also be an issue with the syntax of its parent element.
    Please anyone can help.
    Best Regards ,
    Yasser

    Welcome to the forums !
    Pl see if MOS Doc 360403.1 (Launcing Discoverer Plus Fails With Error "Oracle.Discoverer.Applications.Framework.Globalexceptionhandler.Execute Null" in Application.log File) is applicable in your case
    HTH
    Srini

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

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • How Do I Resolve FileOpen Client Errors When Trying to Open a PDF in Acrobat X or Reader XI?

    I am trying to open some pdf files received from a client that when I try to open them, I receive an error stating, "The FileOpen client has encountered an error.  Please try to re-start  Adobe Acrobat / Reader."  A co-worker was able to open the same files with his version of Acrobat X Pro.  I am not having success whether I use my version of Acrobat X Standard or Acrobat Reader XI; I get the same error with both application.
    Any ideas how to resolve this.
    Thank you.
    Steve

    FileOpen is a security add-on, which is needed to open some files. Not a part of Adobe software. Maybe you need to upgrade or report it: http://www.fileopen.com/

  • I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a n

    I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • Error while trying to open RME home in Ciscoworks LMS 3.2

    Dear friends,
    I get the following error while trying to open RME home.
    "Error occurred while fetching Out-of-Sync count"
    Here's the exact error message:
    HOME0004: Error occurred while fetching Out-of-Sync count. Check RMEHome.log for more details.
    Pls advise.
    Thanks a lot
    Gautam

    Dear Jason,
    Now, i dont get this error and the home page opens but i get the following message in red text for some portions of RME:
    You are not authorized to view the detailsI also tried creating another user with full privileges and used his login but still i see the same results.I had installed LMS the first time in non-ACS mode and the second time i re-installed on top of the previous installation again because i got some Apache errors. I dont think that the reinstall prompted me for the ACS mode but from what i see, it is local and not ACS.Do you think that i should try to reinstall again Ciscoworks? Is reinstall better or uninstall and a subsequent fresh install?

Maybe you are looking for

  • With holding line items are not picking up while clearing with F-44 (DP)

    Hi Friends, I hope you resolve my problem. I have a problem with With holding tax line items. Please see below for more details. 1. Made advance payment to Vendors through F-48 Vendor a/c dr 200,000     To Bank a/c 196000     To TDS a/c      4000 2.

  • IMatch won't upload 60  songs using MAC OS 10.5.8

    All these in eligible for iMatch songs are protected AAC and purchased with old (but still active) Apple Id.  However, iMatch did upload several song with same attributes

  • My Assets iView problem (ESS 50.1.) - "End of Session" returns from ITS

    Hi guys! I have problem with some IAC iViews of ESS 50.1. BP. When I click the link to some of them - My Assets for example, I get screen from its with following message: End of Session. Thank you for working with Internet Transaction Server. Other i

  • Clearing dropdown menus

    // clear contents of add form txtFirstName.text=''; -done! // reset the DropDownList item selectors -  cat category.text=''; -it says category undefined. how do I clear/reset an Array/Object? here's the code of what I want to clear: <mx:FormItem> <s:

  • Missing ODBC connections after 11.1.1.6.2 patches

    Hi: After upgrading the Administration tool to 11.1.1.6.2, I start the Admin tool, attempt to open the repository on-line, but all the ODBC connections are missing. Did I miss a step? Can anyone suggest a fix? Thank you.