StiWebViewer in usercontrol

Stimulsoft Reports.WEB discussion
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

StiWebViewer in usercontrol

Post by smart+ »

Hello,

I have few questions:
1) I created usercontrol with StiWebViewer inside.
Does exist any way dynamic loading usercontrol with "LoadControl("Test.ascx") from my page and showing data?
Please, provide some example code.

2) I created report and make connection and dataset for testing purpose.
Can I override (and how) this connection and dataset from my code calling this report?
Does report.RegData(datable) function is solution for this issue?
Please, provide some example code.

3) How I can use

Code: Select all

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this,report) 
from usercontrol?
Please, provide some example code.

4) How I can generate pdf from report with ajax or in ajax environment?
Please, provide some example code.


Best regards,
Sasa
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

StiWebViewer in usercontrol

Post by Vladimir »

Hello,

We have prepared example for you, please see the attached file.

Thank you.
Attachments
588.Sample.zip
(289.19 KiB) Downloaded 563 times
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

StiWebViewer in usercontrol

Post by smart+ »

I will look your sample.

Thank you.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

StiWebViewer in usercontrol

Post by Andrew »

Great! Let us know about the result.

Thank you.
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

StiWebViewer in usercontrol

Post by smart+ »

Hi,

I looked your sample and was very helpful.

I have few more question:
1) How I can change text on toolbar buttons?
2) When I click on Print to PDF from your toolbar I always get backround small browser window and then
I get File download dialog with Open, Save and Cancel buttons.
Does exist any way when I click on this button that only File download dialog open?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

StiWebViewer in usercontrol

Post by Vladimir »

Hello,

1. You can find the required text lines in the localization file and change them.
2. Unfortunately, you can not remove the temporary background window.

Thank you.
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

StiWebViewer in usercontrol

Post by smart+ »

I find "cro.xml" localization file which is for my language and create "Localization" folder inside "Bin" folder and
put this file inside "Localization" folder, but webviewer not localize labels with my language.

What I make wrong?
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

StiWebViewer in usercontrol

Post by Andrew »

Hello,

Copy the localization .xml files to the Localization folder in your project. All languages will be automatically detected in WebDesigner. To change the default localization set the following property:



Thank you.
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

StiWebViewer in usercontrol

Post by smart+ »

I thinking on StiWebViewer localization, not StiWebDesigner.

How can I localize StiWebViewer?
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

StiWebViewer in usercontrol

Post by Andrew »

Hello,

Sorry for my previous post. It was not correct.

There is no need to put the Localization folder to the Bin folder. You need to put the Localization folder to the root directory of the Web-application (the same directory where the Bin folder and .aspx files are placed)

Thank you.
Post Reply