i have a database where the datapath of docxfiles are saved..These datapath are in my hard drive..i want to show the docxfile exactly the same in my webpage..in my docxfile there may be some texts inside a table and there may be some images..i want to show the exact docxfile into my webpage..i don't know how to do it...
i have seen a code from retrieving data from database which are stored in my APP_DATA folder
@{
var dataFile = Server.MapPath("~/App_Data/Persons.docx");
Array userData = File.ReadAllLines(dataFile);
}
<!DOCTYPE html>
<html>
<body>
<h1>Reading Data from a File</h1>
@foreach (string dataLine in userData)
{
foreach (string dataItem in dataLine.Split(','))
{@dataItem <text> </text>}
<br />
}
</body>
</html>
i don't know whether this will show the exact data with pictures or data inside the table that means how the data is written in the docxfile...