Is there a way to specify a relative URL for PDF files in my XAP file? Or does it have to be an absolute URL read from the Internet?
1 Answer, 1 is accepted
0
Tihomir Petkov
Telerik team
answered on 19 Nov 2009, 09:00 AM
Hello Terry,
You can specify relative paths for your PDF documents but they have to be relative to the .xap file of your Silverlight application i.e. the HtmlPlaceholder cannot render documents embedded in your .xap file. Whatever path you set to the HtmlPlaceholder, you should be able to open it yourself in a browser. So, there is no need for the PDFs to be hosted remotely (on another server) - they can be part of the same web project that hosts your Silverlight application. Let me know if you have any other questions.