Open a MS document in html place holder

14 posts, 1 answers
  1. Uma
    Uma  avatar
    1 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    Hi,

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

    Regards,
    Uma
  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 25 Jun 2009 Link to this post

    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.
  3. DevCraft banner
  4. NS
    NS avatar
    179 posts
    Member since:
    Jan 2007

    Posted 29 Jun 2009 Link to this post

    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
  5. NS
    NS avatar
    179 posts
    Member since:
    Jan 2007

    Posted 29 Jun 2009 Link to this post

    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 !
  6. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 03 May 2011 Link to this post

    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.
  7. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 03 May 2011 Link to this post

    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.
  8. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 03 May 2011 Link to this post

    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.
  9. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 05 May 2011 Link to this post

    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
  10. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 27 May 2011 Link to this post

    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,
  11. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 27 May 2011 Link to this post

    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.
  12. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 27 May 2011 Link to this post

    Hi  
       can RadHtmlplaceHolder accept   stream , then display it.? it is my Envisaged.  ~~
  13. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 01 Jun 2011 Link to this post

    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
  14. jeremy
    jeremy avatar
    23 posts
    Member since:
    May 2011

    Posted 01 Jun 2011 Link to this post

    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
  15. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 02 Jun 2011 Link to this post

    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
Back to Top
DevCraft banner