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

DocumentSource Problem

2 Answers 143 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 22 Jun 2012, 04:09 PM
Hi,

i have a problem to add a DocumentSource on my pdfviewer.

this works fine:
<telerik:RadPdfViewer Grid.Row="1" x:Name="pdfViewer" DocumentSource="F:\\TEMP\\BinderDemo_2009_R4_N55_1\\test.pdf" />

this does not work:
string pdffile_s = "F:\\TEMP\\BinderDemo_2009_R4_N55_1\\test.pdf";
pdfViewer.DocumentSource = new PdfDocumentSource(new System.Uri(@pdffile_s, System.UriKind.Relative));

Why not? I have read this link, but without any good input.
What's wrong in the c# part? I have to add the DocumentSource here.

Please this is a strange Problem! I need help.

Thanks
best Regards
Rene

2 Answers, 1 is accepted

Sort by
0
Accepted
Kammen
Telerik team
answered on 25 Jun 2012, 08:19 AM
Hi Rene,

I think the problem in the C# part is that you are using UriKind.Relative instead of UriKind.Absolute. 

Please, try changing it to UriKind.Absolute and see how it goes.

Regards,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
ITA
Top achievements
Rank 1
answered on 25 Jun 2012, 08:26 AM
Hi,

thank's so much, sometimes glasses would be fine for me...

thanks
Rene
Tags
PDFViewer
Asked by
ITA
Top achievements
Rank 1
Answers by
Kammen
Telerik team
ITA
Top achievements
Rank 1
Share this question
or