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

radbook and external file

9 Answers 331 Views
Book
This is a migrated thread and some comments may be shown as answers.
Ricardo Ferraz
Top achievements
Rank 1
Ricardo Ferraz asked on 09 Apr 2010, 03:46 AM
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.



9 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 09 Apr 2010, 11:20 AM
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.
0
Eduan Marais
Top achievements
Rank 2
answered on 10 May 2010, 12:00 PM
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
0
Kiril Stanoev
Telerik team
answered on 12 May 2010, 04:07 PM
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.
0
Jurjen Ladenius
Top achievements
Rank 2
answered on 26 Jul 2010, 12:02 PM
Hi,

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

Best,

Jurjen Ladenius
0
Kiril Stanoev
Telerik team
answered on 27 Jul 2010, 02:59 PM
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
0
Ravi
Top achievements
Rank 1
answered on 10 Feb 2011, 03:17 PM
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?
0
Tina Stancheva
Telerik team
answered on 10 Feb 2011, 05:01 PM
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>>
0
Ravi
Top achievements
Rank 1
answered on 10 Feb 2011, 05:14 PM
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
0
Tina Stancheva
Telerik team
answered on 11 Feb 2011, 10:17 AM
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>>
Tags
Book
Asked by
Ricardo Ferraz
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Eduan Marais
Top achievements
Rank 2
Kiril Stanoev
Telerik team
Jurjen Ladenius
Top achievements
Rank 2
Ravi
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or