i am stuck at the moment. i have to develop an interactive wpf page. that is, the page has the usual controls like labels and textboxes. the user can enter data into the textboxes and click on a button to save the data. when the button is clicked, the wpf form must be printed.
i want to use Infragistics' report viewer to build the screen. but how do i go about this in a mvvm way?
to load the data onto the screen would be fine, as i have done this before. and saving is no problem. but now i'm going to use the report control. and i am stuck as to how i can use it.
or can i take the existing wpf form and load that into the reporter, with the ability to export it in pdf or print?
Hello Nicholas,
Thank you for your post. I have been looking into it and I can suggest you see the sample in the Samples Browser under Reporting / Organization / Printing Any Visual Element section, where it is shown how to use Report class in order to print visual elements. Please let me know if you need further clarifications on this matter.
Looking forward for your reply.
Hi there.
Thanks for your swift response.
I will look into the samples browser. I was lookig at the other examples.
One question: what is the namespace i should be using in my wpf app? i can't use - using Infragistics.Samples.*;
Or do i have to find the compatible .dll files and import them into my program?
Thank you for your time and patience
all right.
thank you. i will go through these codes and will reply when i either have the problem solved, or have any more questions
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hi team
I am currently trying out the solutions. I have followed the examples and am trying to see if it works.
I should have a response by later today, and let you know
Thanks for your help
I will look forward to hear from you.
Last question. I have managed to get the printing working fine now. It works 100%
All I would to know is if I can change the orientation of the page before printing (ie, from portrait to landscape)
Thanks for all your help thusfar
Thank you for your feedback, I am glad that you were able to resolve your issue. As for the Orientation, I can say that the Report object has an Oriantaion Property which you can set to "PageOrientation.Landscape" or PageOrientation.Portrait".