radbook and external file

10 posts, 0 answers
  1. Ricardo Ferraz
    Ricardo Ferraz avatar
    14 posts
    Member since:
    Sep 2009

    Posted 08 Apr 2010 Link to this post

    I need to load radbook from database , without save images into tmp , and i want navigate on that dinammicly .
    So is it possible , we have .something like

    this ,radbook.load(_my image as byte[]) or as Image - so i i can convert before to use.



  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 09 Apr 2010 Link to this post

    Hi Ricardo,

    Thank you for contacting us.

    You can load all your data in a list of custom business objects. Then you can bind it to the ItemsSource of  RadBook instance.

    Please preview our online examples where RadBook binding is shown.

    We hope this information will help you.

    Regards,
    Ivan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Eduan Marais
    Eduan Marais avatar
    18 posts
    Member since:
    Feb 2010

    Posted 10 May 2010 Link to this post

    Ivan,

    How about loading a pdf file as the source?
    We developed a great framework for the Mine that we work for. I showed some of the Telerik controls to Management, now they would like to have their user manual on the Framework, using the radBook.

    Any ideas. I dont want to convert the 200 pages to images and then load it. Any easier way?

    Regards

    Eduan
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 12 May 2010 Link to this post

    Hello Eduan,

    Currently we do not have a converter that converts a PDF file to a format that our controls understand (ex. XAML). We have plans to create such tool but currently I cannot bind to a specific release date. You can take a look at http://firstfloorsoftware.com/documenttoolkit/ and see if it is of any help. Let me know if you have additional questions or comments.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Jurjen Ladenius
    Jurjen Ladenius avatar
    25 posts
    Member since:
    Jan 2006

    Posted 26 Jul 2010 Link to this post

    Hi,

    Any more news on when PDF will be available as a source for the radbook?

    Best,

    Jurjen Ladenius
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 27 Jul 2010 Link to this post

    Hi Jurjen,

    We are aware that support for such scenarios is critical and we are closely  working with the RichTextBox team to allow integration between RadBook and RadRichTextBox.
    The RichTextBox team have plans by the end of this quarter Q3 2010 to have WPF version of the RichTextBox. Therefore, by the end of Q3 2010 you will be able to load DOCX files in RichTextBox, integrate the RichTextBox with Book, search the text etc.
    As for PDF, the short term plans are to have only export.

    Best wishes,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Ravi
    Ravi avatar
    3 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    There's a Youtube video that shows how to bind PDF in Radbook: http://www.youtube.com/watch?v=QlCUIfAPoHg 
    Can you please put some light on it?
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Feb 2011 Link to this post

    Hello Ravi,

    Currently Silverlight does not support PDF. The only way to display a PDF document in a Silverlight application is to convert the PDF document to format understandable by Silverlight. In the video you mentioned the PDF document is sent to the server using the RadUpload control, where it is converted to a set of image files using Ghostscript. However the GhostScript does not work all the time. It also had dependency on the operating system and so on. Additionally, the method used to retrieve the number of pages in a PDF document did not open all the pdfs. Randomly it would just not open certain document. Therefore, we decided it would be better not to show an approach that we had no control on.

    However, you can find attached a work in progress sample project and an article on the topic. Use them for reference and guidance on how the whole scenario might work. I cannot guarantee that it will work 100% so please do not use this approach in production code.

    All the best,

    Tina Stancheva
    the Telerik team

     

    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  10. Ravi
    Ravi avatar
    3 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    Hi Tina,
    Thank you for the prompt reply.
    I tried the SilverlightPDF project that you zipped to me. I cleaned it and rebuilt but when tried running it, got the below exception

    A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
    The thread '<No Name>' (0x1188) has exited with code 0 (0x0).
    The thread '<No Name>' (0x174) has exited with code 0 (0x0).
    The thread '<No Name>' (0x153c) has exited with code 0 (0x0).
    The thread '<No Name>' (0x16d0) has exited with code 0 (0x0).
    The program '[2328] WebDev.WebServer40.EXE: Managed (v4.0.30319)' has exited with code 0 (0x0).

    I am trying to debug it, if you any clue please let me know about.

    Thank you for your time and consideration.

    EDIT: Probably gs wasn't installed on my machine, trying again.


    EDIT2: Ok,  it went fine and I was able to upload a PDF and view it in Radbook, but the links in the PDF are NOT click-able.
    Is there a way we can fix it?

    Regards
    Ravi Gupta
  11. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 11 Feb 2011 Link to this post

    Hi Ravi,

    Since this application basically turns the PDF pages into images, you won't be able to click on any links. Therefore, in your case it is better to turn your PDF file into .doc or html files instead. This will allow you to use the RadRichTextBox to display the information in the RadBook control and still be able to click on any links inside the files.

    Greetings,
    Tina Stancheva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top
UI for WPF is Visual Studio 2017 Ready