4 Answers, 1 is accepted
0
Hello Ishita,
Yes. You can use the RadDocument to export the RadTimeline to PDF. For more information please refer to our Export Support article.
Regards,
Pavel R. Pavlov
Telerik
Yes. You can use the RadDocument to export the RadTimeline to PDF. For more information please refer to our Export Support article.
Regards,
Pavel R. Pavlov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Ishita
Top achievements
Rank 1
answered on 16 Jan 2015, 09:44 AM
Hello Pavel R. Pavlov,
Thanks for the response.
I want to convert it PDF but i dont want to store it on server, Is is possible ?
Another way is to convert it to image and then preview that image,
Currently, I am converting timeline to image, but that method gives me no result, it stores image to suggested location. to preview, i again need to open a file dialogue box which is not a good way, i can not store it on my server as well. Here is the code i am using, can you please suggest me the required changes or a sample solution, It would be a great help!
FYI : I am using RadControls for Silverlight Q2 2012 SP1.
Thanks for the response.
I want to convert it PDF but i dont want to store it on server, Is is possible ?
Another way is to convert it to image and then preview that image,
Currently, I am converting timeline to image, but that method gives me no result, it stores image to suggested location. to preview, i again need to open a file dialogue box which is not a good way, i can not store it on my server as well. Here is the code i am using, can you please suggest me the required changes or a sample solution, It would be a great help!
FYI : I am using RadControls for Silverlight Q2 2012 SP1.
string extension = "png";
SaveFileDialog dialog = new SaveFileDialog()
{
DefaultExt = extension,
Filter = "Png (*.png)|*.png"
};
if (dialog.ShowDialog() == true)
{
using (Stream stream = dialog.OpenFile())
{
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(
this.radTimelineView, stream, new Telerik.Windows.Media.Imaging.PngBitmapEncoder());
}
}
0
Ishita
Top achievements
Rank 1
answered on 16 Jan 2015, 10:41 AM
Hello Pavel R. Pavlov,
Well, i tried. PDF is created successfully, but, complete image is not coming :(. Though when i convert it to image, i have complete image.
Well, i tried. PDF is created successfully, but, complete image is not coming :(. Though when i convert it to image, i have complete image.
0
Hi Ishita,
I think that I understand the root cause of the issue. The image is not visualized by your PDF viewer because the exported size of the image is greater than the size of A4 paper sheet. In order to visualize it in such sheet you can try rotating the image by 90 degrees or applying a scale transform to it so that it will fit the A4 size. For more information please refer to this article. Please give this approach a try and let us know if you need any further assistance.
I would also like to kindly ask you to continue the communication in this particular thread if you have any further questions regarding the RadTineline control. If you need to ask any other questions regarding other controls like the RadPdfProcessing library, please open a new support thread and set its product field accordingly.
Regards,
Pavel R. Pavlov
Telerik
I think that I understand the root cause of the issue. The image is not visualized by your PDF viewer because the exported size of the image is greater than the size of A4 paper sheet. In order to visualize it in such sheet you can try rotating the image by 90 degrees or applying a scale transform to it so that it will fit the A4 size. For more information please refer to this article. Please give this approach a try and let us know if you need any further assistance.
I would also like to kindly ask you to continue the communication in this particular thread if you have any further questions regarding the RadTineline control. If you need to ask any other questions regarding other controls like the RadPdfProcessing library, please open a new support thread and set its product field accordingly.
Regards,
Pavel R. Pavlov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.