Issues on Viewer.Fx

Stimulsoft Reports.WEB discussion
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Issues on Viewer.Fx

Post by jkoo »

Hello,

I had some issues on web viewer.fx.

1. When the report is saved as a MHT web Archive, I got thf following exception.

•Error: Input string was not in a correct format.

2. Is there any option to disable the export button for MHT?

3."Print to HTML"(Viewer=>Print=>Select 'Print to HTML'=> OK) is doing nothing. Is it a bug?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Issues on Viewer.Fx

Post by HighAley »

jkoo wrote:I had some issues on web viewer.fx.

1. When the report is saved as a MHT web Archive, I got thf following exception.

•Error: Input string was not in a correct format.
Please, send us a report file (mdc-file) for analysis.
jkoo wrote:2. Is there any option to disable the export button for MHT?
Please, try to use next option:

Code: Select all

WebViewerFx1.ShowExportToMht = false;
or on ASPX-page

Code: Select all

cc1:StiWebViewerFx ID="StiWebViewerFx1" runat="server" ShowExportToMht="False"
jkoo wrote:3."Print to HTML"(Viewer=>Print=>Select 'Print to HTML'=> OK) is doing nothing. Is it a bug?
Does HTML export work right?

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Issues on Viewer.Fx

Post by jkoo »

1. Please refer to the attached mdc file

2. It works. Thanks

3. HTML works fine.
Attachments
1544.mht_error.mdc
(259.55 KiB) Downloaded 282 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Issues on Viewer.Fx

Post by Vladimir »

Hello,

1., 3.

The errors have been fixed, the update will be available in the prerelease build next week.

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Issues on Viewer.Fx

Post by jkoo »

I tried export/save features at 2012.3.9 pre-release version again.
and had some issues.

1. "Print to HTML"(Viewer=>Print=>Select 'Print to HTML'=> OK) shows just normal print dialog.
There is no difference between "Default" and :Print to HTML" on print dialog.
Is it by design?

2. Save button (for PDF, HTML and whatevere) didn't work at both webviewer fx and preview on web report designer.
With 2011.3.1200.0(11/30/2011) build, if I clicked "Save" button for PDF or Html, it displays "File Download dialog" properly.
But at 2013.3.9 build(2012.1.1216.0), I cannot export files due to the error (see the attached screenshot).
Attachments
1738.SaveButton.png
1738.SaveButton.png (26.12 KiB) Viewed 3979 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Issues on Viewer.Fx

Post by HighAley »

Hello.
jkoo wrote:I tried export/save features at 2012.3.9 pre-release version again.
and had some issues.

1. "Print to HTML"(Viewer=>Print=>Select 'Print to HTML'=> OK) shows just normal print dialog.
There is no difference between "Default" and :Print to HTML" on print dialog.
Is it by design?
In the Default mode the printing does with images. It give us exact placing of the elements on the page, but it have lager amount of data sending to printer.
In the HTML mode report sends to printer as HTML text. It give us vector printing small amount of data in the print queue. But there could be a problem with text and other components location due browser rendering.
jkoo wrote:2. Save button (for PDF, HTML and whatevere) didn't work at both webviewer fx and preview on web report designer.
With 2011.3.1200.0(11/30/2011) build, if I clicked "Save" button for PDF or Html, it displays "File Download dialog" properly.
But at 2013.3.9 build(2012.1.1216.0), I cannot export files due to the error (see the attached screenshot).
We couldn't reproduce the error. Could you send us some additional information:
- Is there any error om the local machine or on the server only? Which version of the server OS?
- What OS and browser on the client machine? Please, try to use other browser.
- Which viewer parameters do you set? Send us aspx and cs files of the page with Viewer.
- Send us a report (mdc-file) on which we could reproduce the issue.

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Issues on Viewer.Fx

Post by jkoo »

Finally I found why it happens.
Our golbal.asax.cs has the following code
protected void Application_PostAuthenticateRequest(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}

If I remove the above cache setting, save buttons works fine.

Anyway this cache setting works fine with old stimulate version(ie, 2011.3).
Why it doesn't work with the latest (2012.3.9 )?

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Issues on Viewer.Fx

Post by Vladimir »

Hello,

Please check the official release 2012.1, there are some changes in this direction.

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Issues on Viewer.Fx

Post by jkoo »

I already tried 2012.1. It had still this issue.

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Issues on Viewer.Fx

Post by Vladimir »

Hello,

We check the code changes made ​​since the release of 2011.3. Could you please check if the error appears on the AJAX WebViewer with RenderMode="AjaxWithCache" ?

Thank you.
Post Reply