Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Problem Printing the visual of the Main window with other window (pop-up window) on top of it
posted

Hi,

I am using Infragistics V10.2. I need some help figuring out how to print a screen using Infragistics.

I am able to print the main window but when there is a popup on the main window how can I print the complete screen as an image?

 

 

 

 

 

 

 

Report rptScreenPrint = new Report();

//Main_Grid is the Grid on Main Window

 

 

 

EmbeddedVisualReportSection rptsection = new EmbeddedVisualReportSection(this.Main_Grid);

rptScreenPrint.Sections.Add(rptsection);

 

 

//Scale the page and change the page orientation to Landscape mode and performs print operation

rptScreenPrint.ReportSettings.HorizontalPaginationMode =

HorizontalPaginationMode.Scale;

rptScreenPrint.ReportSettings.PageOrientation =

PageOrientation.Landscape;

Using above code I was able to print the main screen, but when there is a popup on top of  Main_Grid, I don't know how to print the complete page including the popup window.

Please advise.

Thanks,

Rakesh

  • 138253
    Offline posted

    Hello Rakesh,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking through your post and I can say that the thing you want is not achievable, because the PopUp Window is not part of the VisualTree of the MainWindow, and the EmbededVisualReportSection takes an UI element as a parameter in its constructor, so the PopUp is not added.

     

    Feel free to write me if you have further questions.