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

Open a MS document in html place holder

13 Answers 139 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 25 Jun 2009, 07:19 AM
Hi,

Do we open a document (doc, pdf) within this html place holder?

Regards,
Uma

13 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 25 Jun 2009, 07:30 AM
Hi Uma ,

Yes - the htmlplaceholder act like you have an embedded browser within your application, so just point to the correct url and it will render it. Use the SourceUrl property.

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
NS
Top achievements
Rank 1
answered on 29 Jun 2009, 12:16 PM
Hi,
I have a string that contains tab-delimted info.
I want to assign this string to the HTMLSource property of the html place holder. This works fine.

My question is : How do I add the excel headers to the html document ? Because now the contents of the string is shown, but it isn't loaded in Excel in the browser.

Thanks,
Nicolas
0
NS
Top achievements
Rank 1
answered on 29 Jun 2009, 01:01 PM
Solved it by using the method (using webclient) that is described in the export-function of RadGridView.

There are actually lots of persons on the MS Silverlight forum with this problem. And the solution is for grabs at the Telerik examples :-) Great job guys !
0
jeremy
Top achievements
Rank 1
answered on 03 May 2011, 05:26 AM
Hi.
    My company bought the telerik silverlight.  Now we use it in our project.
     We plan to use the RadHtmlPlaceholder to open MS files(.doc .xls .txt), the files be stored in the IsolateStorage which be added by the OpenFileDialog.  But now we got a problem, we can not get the absolution path (like C:\Users\Administrator\AppData\LocalLow\Microsoft\Silverlight\is\vsugfyy4.1kn\ubptuc5h.hwp\1\s\t0hwbg3uj1cfdr2h3nxlssrk5zsit1abhjcllnjyahjef2nlobaaafca\f) of MS File in the IsolateStorage to set the property  SourceUri of RadHtmlPlaceholder . How can i to do?  thanks.
0
jeremy
Top achievements
Rank 1
answered on 03 May 2011, 05:28 AM
Hi.
    My company bought the telerik silverlight.  Now we use it in our project.
     We plan to use the RadHtmlPlaceholder to open MS files(.doc .xls .txt), the files be stored in the IsolateStorage which be added by the OpenFileDialog.  But now we got a problem, we can not get the absolution path (like C:\Users\Administrator\AppData\LocalLow\Microsoft\Silverlight\is\vsugfyy4.1kn\ubptuc5h.hwp\1\s\t0hwbg3uj1cfdr2h3nxlssrk5zsit1abhjcllnjyahjef2nlobaaafca\f) of MS File in the IsolateStorage to set the property  SourceUri of RadHtmlPlaceholder . How can i to do?  thanks.
0
jeremy
Top achievements
Rank 1
answered on 03 May 2011, 05:29 AM
Hi.
    My company bought the telerik silverlight.  Now we use it in our project.
    We plan to use the RadHtmlPlaceholder to open MS files(.doc .xls .txt), the files be stored in the IsolateStorage which be added by the OpenFileDialog.  But now we got a problem, we can not get the absolution path (like C:\Users\Administrator\AppData\LocalLow\Microsoft\Silverlight\is\vsugfyy4.1kn\ubptuc5h.hwp\1\s\t0hwbg3uj1cfdr2h3nxlssrk5zsit1abhjcllnjyahjef2nlobaaafca\f) of MS File in the IsolateStorage to set the property  SourceUri of RadHtmlPlaceholder . How can i to do?
 
thanks.
0
Kiril Stanoev
Telerik team
answered on 05 May 2011, 05:36 PM
Hi Jeremy,

Thank you for contacting us. Why do you need the full path to the file? Isn't it working properly if you just give the name of file as SourceUri to RadHtmlPlaceholder? Also if you have a project reproducing the issue, could you please send it to us. This way we will be better able to assist you.

Regards,
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
jeremy
Top achievements
Rank 1
answered on 27 May 2011, 05:41 PM
Hi Kiril,
   I am so sorry , I reply so late.
   I have some questions:
   1.Can Html place holder open the local MS document? if it can, where the files be stored?  and how to set the SOURCEURI property?
   2. if  MS document be stored on the server , we can user the SOURCEURI property to open the a MS doucment. Yes, it works fine. But I want to open the local MS document, the application should upload the file to the server, then return the URL to the Html place holder to open it . it is not a good idea. do you think so?
    3. I try to open the local MS doument,(use the absolute address of Isolate storage which gain by debugging the program) the appliation should in the  windowless mode, there is another problem that we can not input other language like chinese or Japanese on the textbox . I don't know why.
    It is an important problem in our project. hope your reply.
thanks
Jeremy,
0
jeremy
Top achievements
Rank 1
answered on 27 May 2011, 05:48 PM
HI
   Isn't it working properly if you just give the name of file as SourceUri to RadHtmlPlaceholder?   How the RadHtmlPlaceholder to find the file according to the name of the file.  the file be stored in local storage system. may be disk D or isolate storage.
0
jeremy
Top achievements
Rank 1
answered on 27 May 2011, 05:54 PM
Hi  
   can RadHtmlplaceHolder accept   stream , then display it.? it is my Envisaged.  ~~
0
Kiril Stanoev
Telerik team
answered on 01 Jun 2011, 03:13 PM
Hi NS,

Currently, RadHtmlPlaceholder does not take stream. My suggestion is to use RadHtmlPlaceholder and RadUpload to achieve the functionality you're looking for.  

Kind regards,
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
jeremy
Top achievements
Rank 1
answered on 01 Jun 2011, 04:18 PM
Hi,
   It is so bad to upload more than 100 MB file to the server. Do you have different way to open MS document.?
Best Regards
Jeremy
0
Kiril Stanoev
Telerik team
answered on 02 Jun 2011, 08:11 AM
Hello jeremy,

You can use our RadRichTextBox control which supports MS Word files

Kind regards,
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
Tags
HTMLPlaceHolder
Asked by
Uma
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
NS
Top achievements
Rank 1
jeremy
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or