ReportViewer Generic error GDI +

5

In ReportViewer, some generated requests are generating exception, and when this occurs, I can not even export to PDF, but for DOC it works. Does anyone know what's going on?

I use C # with VS2010 and .Net 4.5

Description of exception :

em System.Drawing.Imaging.Metafile..ctor(Stream stream)
em Microsoft.Reporting.WinForms.MetaFilePage..ctor(Stream metaFileStream, PageSettings pageSettings)
em Microsoft.Reporting.WinForms.ReportPrintDocument.OnPrintPage(PrintPageEventArgs e)
em System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
em System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
em System.Drawing.Printing.PrintController.Print(PrintDocument document)
em System.Drawing.Printing.PrintDocument.Print()
em Microsoft.Reporting.WinForms.ReportViewer.PrintDialog(PrinterSettings printerSettings)
    
asked by anonymous 29.05.2014 / 00:40

2 answers

0

If the ReporterViewer is receiving the information and viewing, test with your application on another computer or a virtual machine, I use the RV a long time and I did not have this problem, but one thing to watch out for is the page dimensions, footer and etc. in the project, on the web you can find patterns.

    
07.10.2014 / 22:55
0

I entered the site to post a question and I saw that it was still without solution, but I found the problem. The case is that I used in the class an attribute of type uint, and in RV, when it was going to print or generate PDF, it gave error, it was only switch to int and the problem was solved.     

07.01.2016 / 19:47