Print and Preview timelineview as PDF

5 posts, 0 answers
  1. Ishita
    Ishita avatar
    30 posts
    Member since:
    Nov 2013

    Posted 13 Jan 2015 Link to this post

    Hi, 
          Basically, I want to Print my timelineview.
     As i want to provide a Preview before print, can i convert it to PDF first, then viewed by radPDFViewer and then print ? 
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 16 Jan 2015 Link to this post

    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
     

    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.

     
  3. DevCraft banner
  4. Ishita
    Ishita avatar
    30 posts
    Member since:
    Nov 2013

    Posted 16 Jan 2015 Link to this post

    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. 
    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());
    }
    }

  5. Ishita
    Ishita avatar
    30 posts
    Member since:
    Nov 2013

    Posted 16 Jan 2015 Link to this post

    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.
  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 21 Jan 2015 Link to this post

    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
     

    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.

     
Back to Top
DevCraft banner