This is a migrated thread and some comments may be shown as answers.

Export to Image and PDF

1 Answer 240 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Purna
Top achievements
Rank 1
Purna asked on 22 Nov 2017, 11:50 PM

Hello

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.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 27 Nov 2017, 02:58 PM
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.

Regards,
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.
Tags
ChartView
Asked by
Purna
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or