The MindFusion Forums | |
MindFusion.Reporting >> WPF >> Export to PDF problem
https://mindfusion.eu/Forum/YaBB.pl?num=1362038233 Message started by luolishuang on Feb 28th, 2013 at 7:57am |
Title: Export to PDF problem Post by luolishuang on Feb 28th, 2013 at 7:57am
the first attachment image file below is runtime effect,but when to export to pdf file, the effect like second attachment image below.
May I know what happen? ps:Exporting takes too long. 2013-2-28_15-48-16.png (Attachment deleted) 2013-2-28_15-48-48.png (Attachment deleted)
|
Title: Re: Export to PDF problem Post by Meppy on Feb 28th, 2013 at 12:03pm
An updated version of the control can be downloaded from this link:
https://mindfusion.eu/_temp/MindFusion.Reporting.Wpf.1.3.trial2.net35.zip This version should fix the clipping issues you have experienced earlier. In addition, the PdfExporter class now exposes two new properties - AutoDetectEncoding and DefaultEncoding. You can use these properties to turn off automatic encoding detection and thus increase the export speed significantly. If you turn off automatic detection, make sure to specify default encoding or an exception will be thrown: [code]exporter.AutoDetectEncoding = false; exporter.DefaultEncoding = Encoding.Default;[/code] This should also fix the issue with the Gain text being stretched out disproportionately and with a wrong font. Let me know if this helps. Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on Mar 1st, 2013 at 1:04am Meppy wrote on Feb 28th, 2013 at 12:03pm:
Meppy, Pdf file now seemed very well,but the exporting speed also too slowly |
Title: Re: Export to PDF problem Post by luolishuang on Mar 1st, 2013 at 1:29am
There are still a problem:
like attachment image file 2 the word "e?" is moved to the front,May I know what happened? 2013-3-1_9-23-00.png (Attachment deleted) 2013-3-1_9-23-13.png (Attachment deleted)
|
Title: Re: Export to PDF problem Post by Meppy on Mar 1st, 2013 at 6:57am
Can you post the XAML of your report and attach the resulting PDF file?
|
Title: Re: Export to PDF problem Post by luolishuang on Mar 1st, 2013 at 7:21am Meppy wrote on Mar 1st, 2013 at 6:57am:
This is xaml code below, Code (] <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="http://mindfusion.eu/reporting/wpf"> <r:Report x:Key="StudentResult" FontFamily="Arial" FontSize="12"> <r:Page > <!-- Page Content--> <r:DataRange DataSource="{Binding StudentSessionInfo}" Location="0%,0" Size="100%,60"> <r:DataRange.ItemTemplate > <DataTemplate > <r:ItemContainer > <r:Label Location="0%,0" Size="83%,20" Background="#F8F488" Text="[ID):
PDF file size exceed the attachment maximum size,so the attachment image is a piece of a paper a_page.png (Attachment deleted)
|
Title: Re: Export to PDF problem Post by Meppy on Mar 1st, 2013 at 7:57am
Is it possible to send me your project to meppy@mindfusion.eu or post here your data structure and code behind?
Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on Mar 1st, 2013 at 9:10am Meppy wrote on Mar 1st, 2013 at 7:57am:
code behind: [code] myReport.QueryDetails += (s, e) => { DataRange sender = s as DataRange; if (sender != null) { if (sender.Name == "QuesionInfo") { ReportDataSet.StudentSessionInfoRow sessionInfoRow = e.MasterRow as ReportDataSet.StudentSessionInfoRow; e.Details = reportDs.SAnswerInfo.Where(sa => sa.SID == sessionInfoRow.ID); } else if (sender.Name == "OptionInfo") { ReportDataSet.SAnswerInfoRow sai = e.MasterRow as ReportDataSet.SAnswerInfoRow; e.Details = GetOptionsByQNo(sai.QNo); } } };[/code] data structure below __25429___33719__001.PNG (Attachment deleted)
|
Title: Re: Export to PDF problem Post by Meppy on Mar 1st, 2013 at 1:48pm
Can you also provide me with the code you are using to export the report to PDF? More specifically, I am interested in what encoding you supply to the PDF exporter.
Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on Mar 2nd, 2013 at 1:47pm Meppy wrote on Mar 1st, 2013 at 1:48pm:
like your example: [code]exporter.AutoDetectEncoding = false; exporter.DefaultEncoding = Encoding.Default; [/code] |
Title: Re: Export to PDF problem Post by Meppy on Mar 4th, 2013 at 6:47am
What is the Language Format in your Region and Language settings in Windows?
|
Title: Re: Export to PDF problem Post by luolishuang on Mar 4th, 2013 at 6:51am Meppy wrote on Mar 4th, 2013 at 6:47am:
Chinese(China) |
Title: Re: Export to PDF problem Post by Meppy on Mar 4th, 2013 at 10:37am
We are having difficulties reproducing this bug here. Can you attach (or sent to meppy@mindfusion.eu) the PDF file containing the overlapping texts?
Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on Mar 5th, 2013 at 2:08am Meppy wrote on Mar 4th, 2013 at 10:37am:
Meppy, the pdf file has been sent to your email,please check it. |
Title: Re: Export to PDF problem Post by Meppy on Mar 5th, 2013 at 11:32am
Hi,
Thanks to your feedback, we were able to pinpoint the problem and are now working on a fix. I will get back to you as soon as possible. Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on May 3rd, 2013 at 2:35am Meppy wrote on Mar 5th, 2013 at 11:32am:
Hi Meppy,this problem has been solved? |
Title: Re: Export to PDF problem Post by Meppy on May 3rd, 2013 at 7:15am
Hi,
Unfortunately we are still in the process of fixing this issue. I hope we will have something ready in one or two weeks. Regards, Meppy |
Title: Re: Export to PDF problem Post by luolishuang on May 6th, 2013 at 1:23am
I am looking forward to it.
|
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |