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
345
Xamdatagrid printing; make print dialog center of its owner.
posted

Hi,

I am working with XamDatagRid, and want to print its visual section. Below is my codes:

 var reportObj = new Report();
                       var section = new 
EmbeddedVisualReportSection(this.restrictionData);
                       reportObj.Sections.Add(section);
                       reportObj.Print();


but the print dialog always shows up on 
the left corner of application, 
can I make it on the center of its owner? 
how can i achieve this please? please see pic1.png.

And another question is:
how can i add a header which is in the center 
and space line above/below.
 please see the picture attached (pic2.png is what I wanted).