The MindFusion Forums | |
MindFusion.Reporting >> WPF >> The empty DataRange can NOT be exported to PDF
https://mindfusion.eu/Forum/YaBB.pl?num=1368524680 Message started by luolishuang on May 14th, 2013 at 9:44am |
Title: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 14th, 2013 at 9:44am
The empty DataRange can NOT be exported to PDF
any solution?? |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 14th, 2013 at 11:09am
Hi,
Currently empty data ranges are not displayed in reports. You can set DataRange.Repeat to 1 for the data range to force it to have one instance. Let me know if this helps. Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 15th, 2013 at 3:25am
but I wanna to control the datarange to display or not by condition.
any solution? |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 15th, 2013 at 5:33am
Try setting DataRange.Repeat to 1 for the empty data ranges that you want to be visible. Make sure that DataRange.DataSource is set to null in this case. You can also set Repeat in the QueryDetails event handler for nested data ranges. In this case set QueryDetailsEventArgs.Details to null.
Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 15th, 2013 at 6:43am Meppy wrote on May 15th, 2013 at 5:33am:
Hi, This still display the DataRange, but I wanna to control the DataRange invisible. any solution? |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 15th, 2013 at 8:12am
Can you provide me with a sample with your report and specify which data ranges in this report you want to show or hide?
Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 15th, 2013 at 9:01am Meppy wrote on May 15th, 2013 at 8:12am:
Hi, the xaml sample code below: Code (html):
I wanna to control "EliminationList" DataRange to show or hide. thx.. |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 15th, 2013 at 9:44am
You can handle the QueryDetails event of the report, inspect the sender's name and if it is "EliminationList", do one of the following depending on whether you want to show or hide the range:
Let me know if this helps. Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 16th, 2013 at 12:58am Meppy wrote on May 15th, 2013 at 9:44am:
Yeah, it will hide the DataRange, but this will throw exception when exporting to PDF |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 16th, 2013 at 7:38am
Hi,
I have sent you an e-mail with an updated version that should address this problem. Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 17th, 2013 at 1:11am Meppy wrote on May 16th, 2013 at 7:38am:
Hi, Thanks for your great help, the problem is solved, but there is still little problem, when the "EliminationList" DataRange is hidden, the area is still exist, like image below The blank area can be removed? 2013-5-17_9-03-24.png (Attachment deleted)
|
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 17th, 2013 at 9:40am
Hi,
You can try setting the height of the DataRange in question to 0 (that is, set Size to "W,0" where W is your current value for width). If the range has any content, it will be resized accordingly so that the content fits; if it is empty, it should take no space. However, the header of the data range (if any) will still be accounted for. Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 20th, 2013 at 1:56am
Hi,
I set my "AnswerList" and "EliminationList" DataRange size's height to 0, but seem still the same effect. |
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 20th, 2013 at 5:41am
Hi,
Can you please attach the full XAML of your report? Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 20th, 2013 at 6:59am Meppy wrote on May 20th, 2013 at 5:41am:
This is my full XAML report below, thanks. Code (html):
|
Title: Re: The empty DataRange can NOT be exported to PDF Post by Meppy on May 20th, 2013 at 9:33am
Hi,
I have e-mailed you a new version of the control. Now, in addition to setting the heights of AnswerList and EliminationList to 0, now also set the height of the primary data range to 0. This is to indicate that the data range needs to be auto-sized based on its content. Regards, Meppy |
Title: Re: The empty DataRange can NOT be exported to PDF Post by luolishuang on May 21st, 2013 at 2:05am
Hi Meppy, thanks for your great help.
|
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |