Click here to Skip to main content
15,172,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,
I am little bit confuse for work on it.
I have a document file path in database and having files in related folders
and i want to just show the doc file on the aspx page which path is come from the database.
now i have tried many ways to use it
1:Show in the Iframe
{
iframe1.Attributes["src"]="path";
//but this is not work
}
2: i am not use it in html5 with object and datasource this is not getting file path from c#
3:i have a tried another solution for it.it is complex for me
but i tried
in this step i am trying to convert doc file to html then it show in the webpage with iframe
may be it is work
but when i give the path from database then this is not working

can any one suggest to solve it how can i come from it

Note:* how can i show the documents files on the webpage when path come from the database?
Posted
Comments
Manoj Sawant 1-Jun-15 3:43am
   
Do you want to get data out of doc file???
Aditya Chauhan 1-Jun-15 4:42am
   
may Be if it is possible
but now i want my simple just show the doc file in aspx page path from database

   
Comments
Aditya Chauhan 4-Jun-15 12:37pm
   
I have done my job on local host this is work f9
but on the server this show the error
pls suggest me why this come

Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
aarif moh shaikh 9-Jun-15 0:40am
   
add this assembly in your web.config file.
please check the below link

Click me[^]
   
Comments
Aditya Chauhan 4-Jun-15 12:37pm
   
I have done my job on local host this is work f9
but on the server this show the error
pls suggest me why this come

Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
sasanka sekhar panda 8-Jun-15 2:25am
   
Please install Ms office 2013 in your server it will work fine..It is working fine in your local machine becoz you have ms office in your local..If you need more help let me know..
Aditya Chauhan 8-Jun-15 5:03am
   
ya but godaddy told they are not providing office with shared hsoting
Aditya Chauhan 8-Jun-15 5:03am
   
then how can i resolve it suggest me
   
Comments
CHill60 9-Jun-15 3:35am
   
As you posted an earlier solution, this single word post is a little confusing - is this the solution or is your previous post the solution.
If you have further information to add it is better to use the Improve solution link, or just respond to the comment.
If you want to quickly include a link in a comment then the easiest way is to temporarily paste it into a blank solution, so that the HTML is auto-generated. Then cut it from the solution and paste it the HTML into the comment

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900