Convert Muitipage PDF

Dec 28, 2010 at 1:16 PM
Edited Dec 28, 2010 at 1:20 PM

My scenario like this

I using prism to develop my Silverlight App. So I have many Views, and when click Print button, I scan all Views and add to StackPanel.

After that, I convert this StackPanel to Image (using Image Tool), and convert to PDF.

My problem is, although I have multipage, but silverPDF just create one page.

I think, problem maybe come from convert StackPanel to Image.

And I also want add pagebreak for each View.

I hope anybody can help me.

Thank you.

Dec 30, 2010 at 9:13 AM

I found the answer, and the code like this, but I have other issue.

I using ImageTool to convert UIElement to Image. But ImageTool can not convert some Silverlight Control to image.

When I try convert a Silverlight TextBox, It throw a exception like this.

Postcondition failed: !IsFilled || Contract.Result<int>() > 0.

Thank you.



Mar 25, 2011 at 6:30 PM

Please post the answer at least.. :(

Mar 25, 2011 at 6:31 PM

I'm caught up in the same issue of having three images and writing it to pdf.

But only one page comes up right..