I have 2 questions related to
XPS file reader in HTML output
.
1) I done some sample using
GroupDocs Viewer, it’s giving result in HTML format using property called
“UseHtmlBasedEngine”
but giving me error in top corner of viewer like
“HTTP Error 404.0 not found”.
string fileName = (sender as LinkButton).CommandArgument;
string scriptLibraries = Viewer.CreateScriptLoadBlock().LoadJquery().LoadJqueryUi().ToString();
string inlineDocPreviewScript = Viewer.ClientCode()
.TargetElementSelector("#divShow")
.FilePath(fileName)
.EnableRightClickMenu(true)
.ShowThumbnails(true)
.OpenThumbnails(true)
.ZoomToFitWidth()
.Quality(100)
.MinimumImageWidth(ImageWidth)
.UseHtmlBasedEngine(true,true,true,true)
.ToString();
HeadControl.Controls.Add(new Literal() { Text = scriptLibraries });
BodyControl.Controls.Add(new Literal() { Text = inlineDocPreviewScript });
Question : How to resolve HTTP 404.0 not found error in this scenario?
2) My Architect suggested me in below manner,
-> rename the xps file into zip and then extract the folder.
-> you may found no of html and images and xml files.
-> based on xml result we can read.
-> Assume that we have different chapters / documents in the book(xps file) it generates different folder for each chapter, and for each chapter we have an image name as “cover.png”, that means it is available in all the folders, while reading from code how we know from which folder we can call this?
Question : How to read the html and image files from different folders and mapped in different directions?
Also, please suggest me which one is good approach for reading xps file in html based result.