Export to Image and PDF

2 posts, 0 answers
  1. Purna
    Purna avatar
    12 posts
    Member since:
    Nov 2017

    Posted 22 Nov 2017 Link to this post


    I used the following code to export to image

            Dim filename As String = "C:\Export\ExportedChart.png"

            Using fileStream As Stream = File.Open(filename, FileMode.OpenOrCreate)
                Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(Me.chart, fileStream, New PngBitmapEncoder())
            End Using


    But the exported image misses the X and Y coordinate values. How can I export the image exactly as seen in the UI

    I would like to export to PDF as well.

  2. Dilyan Traykov
    Dilyan Traykov avatar
    875 posts

    Posted 27 Nov 2017 Link to this post

    Hello Purna,

    Could you please share an image of the expected outcome as I did not quite understand what the exact issue with the current export is?

    As for exporting the control to PDF, you can have a look at the ExportUIЕlement demo from the Document Processing SDK.

    For your convenience, I'm attaching the actual runnable project. You can use the Telerik Code Converter to convert this code into VB. Please have a look and let me know if you find this helpful.

    I look forward to your reply.

    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top