Hi,
Hi again,
Sorry but the trick doesn’t work, the result is the same… i don’t know what else to do to get it work!
Well, we can’t wait for 20 days even if you resolve all the issues that we have reported.
Hello Gianluca,
The HTML approach (adding a meta tag in the head) only works consistently on raw HTML or very basic server pages. According on the screenshots your site is a very complex server-driven site, themeing and a lot of third party controls, etc. What I found was that some of these controls may programmatically adding their own tags to the final HTML which were being pushed to the browser at the beginning of the head tag. This effectively rendered the HTML meta tags useless.
Well, if you can’t beat them, join them. One more solution that can help you is to do exactly the same thing in the pre-render event of your web page with the iframe as such: Open your aspx.cs file of the web page with iframe (n the example project that you shared it is a IframePreview,aspx.cs) and add such code
protected void Page_PreRender(object sender, EventArgs e)
{
HtmlMeta MetaTag = new HtmlMeta();
MetaTag.HttpEquiv = “X-UA-Compatible”;
MetaTag.Content = “IE=edge”;
Page.Header.Controls.AddAt(0, MetaTag);
}
Please try this approach. Also don’t forget to clear the browser and IIS cache.
Best regards.
Hello Gianluca,
Hi,
Hi, I want to summarize the issues that we have found.
Now we are using 2.11.1 version of viewer and we want to use HtmlBasedEngine property to improve performances.
We noticed:
- slowness in general, particularly if you want to view a ppt/pptx file.
- if you use HtmlBasedEngine xls file are not displayed, while if you set that property to false, it show a page for each sheet (noticed in IE9, IE10, IE11 and Firefox)
- with txt file with IE10 and IE11 during the opening there is a js error and then the file is zoomed at the max value. With IE9 the file doesn't appear. If you not use HtmlBasedEngine the file is displayed in the right way.
- With IE9 doc files with tables, images, etc.. are displayed in a wrong way. This when the viewer is inside a frame in the page and the page where the frame is showed use other components like telerik that use the same css/jquery. Maybe this is the same problem that occurs with txt files.
- With IE9 when you try to zoom in or zoom out or rotate the page, the document isn't displayed in the right way (the file is cutted instead of zoomed). This occur when the viewer is inside a frame like above. If you not use HtmlBasedEngine with document with about 50-70 pages there are problems of slowness and freezing of the browser.
- With eml files the date is not right (we noticed that it shows 2 hours back, in our case).
Now, to remedy to this problems, we use HtmlBasedEngine(false) for txt and xls files for all the browser and also for doc files with IE9.
I understand that IE8 is an old browser (in fact we don't use the viewer with IE8 anymore), but at least with IE >9 it should work properly, because we can't say to our customers to update the browser version if they have more clients.
We will be grateful if you can tell to us exact dates to fix this problems because we have to inform our customers.
Thank you
Hi,
Hello Gianluca,
I can’t switch the quirks mode because it comes in a lot of errors in browser…
Hi Pavel,
- in IE9 and IE10, using htmlEngine, we have problems with txt and xslx files. In console there are javascript errors of this kind : "SCRIPT5022: Syntax error, unrecognized expression: “<div…”. If we disable HtmlEngine, xsl files are displayed in different pages, as you can see printing a file of this extension, with all the document cropped in different sheets;
- txt file is fixed in ie10 but not in ie9
- the problem with files with tables etc isn’t fixed disabling the jquery loading.
Hello Gianluca,
PS: by tests i saw that format errors are due to UseVirtualScrolling set to true. with this property to false, on txt and xlsx the zoom buttons hasn’t effect on IE9 in iframe,
Hi Gianluca,
Hello Gianluca,
Hi,
Can’t attach the files cause of captcha error but please note that the issues can be replicated using the files in demo project and enabling the virtual scrolling
If you need of some extra datas or wanna do a teamviewer session please tell me, we wanna resolve the problem asap.
Hello Gianluca,
Thank you for the notification about the files. The full list of fixed bugs you can check here. The bug is fixed, also as you say the issue in the IE9 for txt files fixed.
Thank you.