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
1240
How to render a xamHtmlViewer to a bitmap to include in Reporting?
posted

(Cross-posted from the xamHtmlViewer after no response there.)

I am trying to export a dashboard using Infragistics reporting. I can successfully render all of my graphs and tables, but have had no luck with xamHtmlViewer. Can you point me to the right way to get a xamHtmlViewer into a bitmap?

Thanks,

Mike

P.S. I can successfully do this on our WPF side using the WPF WebBrowser and using a complicated procedure using XpsDocument, but I don't think that stands any chance of working in Silverlight.

  • 34510
    Offline posted

    Hi Mike,

    This is something I had tried before but due to the nature of the XamHtmlViewer in Silverlight and how it works, this currently isn't possible.  The reason it doesn't work is because Silverlight isn't actually doing any of the rendering.  The XamHtmlViewer let's the browser handle the rendering so using techniques that would normally render Silverlight controls to an image will generate blank images.  What you would need is something that can generate an image from HTML.

    I've gone ahead and logged a new product idea for this and have sent it directly to our product management team.  Our product team chooses new product ideas for development based on popular feedback from our customer base.  Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.

    We value your input, and our philosophy is to enhance our toolset based on customer feedback.  If your feature is chosen for development, you will be notified at that time.  Your reference number for this product idea is PI12100042.

    If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email.  Please include the reference number of your product idea in the subject and body of your email message.  You can reach Developer Support management through the following email address:  dsmanager@infragistics.com

    Let me know if you have any questions on this.