Hello,
I have a report with 4 sections. So I have 4 pages for printing. If I try to print all pages - all Ok. But when I try to print page range (for example, from 2 to 3), I get empty pages.
I have noticed, if the report contains several pages, and consists of only one section with XamDataGrid, then print proceeds normally with any combination of pages.
I have been looking into your issue and even though I could reproduce the behavior you explained exactly I did stumble upon a similar issue. I was wondering if you could please provide me with a detailed description of your scenario and the NetAdvantage version you are using, or if possible a sample project I can use for testing that will surely provide all the above mentioned.
Thank you in advance. Looking forward to hearing from you.
Well, I'll try to write a sample project. We are using 11.1 version of components.
But I do not quite understand your first sentence: You can repeat the problem or not?
Hello Andrey,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Sorry for my later answer. I do not have enough time to make complete example. So I tried to modify your 2011.2 WPF Feature Browser by adding a few lines of markup and code (I think that's even better). And the result was as described in my first post.So ...
PrintPreview_Samp.xaml changes:
...
<TabItem Header="{Binding ElementName=root, Path=TabControl_DataHeader}" Style="{DynamicResource TabItem_FeatureBrowser}"> <StackPanel Orientation="Vertical"> <igDP:XamDataGrid x:Name="XamDataGrid1" Theme="IGTheme" DataSource="{Binding Source={StaticResource MovieData}}" Background="#FFFFFF" IsGroupByAreaExpanded="False" > <!-- Using the properties of the Field object, you can define custom header labels and also control the visibility of Fields within a FieldLayout --> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="Title" Label="Title"/> <igDP:Field Name="Running_x0020_Time" Label="Running Time"/> <igDP:Field Name="Release_x0020_Date" Label="Release Date"/> <igDP:Field Name="MPAA_x0020_Rating" Label="MPAA Rating"/> <igDP:Field Name="Critics_x0020_Rating" Label="Critics Rating"/> <igDP:Field Name="Cumulative_x0020_Gross" Label="Cumulative Gross"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid> <TextBlock x:Name="tbPage2" Text="Page 2" /> <TextBlock x:Name="tbPage3" Text="Page 3" /> </StackPanel> </TabItem>
PrintPreview_Samp.xaml.cs changes:
// Create section with chart EmbeddedVisualReportSection section1 = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section1); EmbeddedVisualReportSection section2 = new EmbeddedVisualReportSection(tbPage2); reportObj.Sections.Add(section2); EmbeddedVisualReportSection section3 = new EmbeddedVisualReportSection(tbPage3); reportObj.Sections.Add(section3);
Run Feature Browser -> Reporting -> Generating a Print Preview. Go to "Preview" Tab. Press "Generate Preview" and "Print". Select to print only 3-rd page - get empty page. If i try to print all pages - all is well.
I've attached modified versions of files.
Hello Petar,
Are there any ideas about written above? Could you repeat the mistake?
hello?
I made sample project with described problem (tested on versions 11.1, 12.1). Report consists of 3 simple sections (one textblock per section). Press "Preview". Press "Print". Select to print only 2-nd page and get error like:
This is a major bug in our software and several user of our program pay attention to this. Can you help me in this situation?