Page 1 of 1

Popup inside Report

Posted: Mon Dec 07, 2015 1:27 pm
by Douglas Garrido
Hi,

I'm using an old version of Stimulsoft Reports.Net (2014.3). My question is:

Is possible open a popup referencing a new URL inside? Like in Javascript "window.open('www.google.com')"?

I try using Stimulsoft Code Behind C# > "RegisterClientScriptBlock()", but he haven't namespace "System.Web.UI".

Any solution, or with Stimulsoft.JS or Stimulsoft.Web is more easy to do that?

Tks! And sorry my english :|

Re: Popup inside Report

Posted: Mon Dec 07, 2015 2:04 pm
by HighAley
Hello.

Could you specify which our product do you use?
The answer could be different for different products.

Maybe you are looking for drill-down feature?
Also it's possible to use Hyperlink to open something new.

Could you specify which our Viewer do you use to show report? Also describe your issue more detailed.

Thank you.

Re: Popup inside Report

Posted: Mon Dec 07, 2015 3:40 pm
by Douglas Garrido
I'm using Stimulsoft Report.Net, version 2014.3. My project is a Website ASP.NET, .NET Framework 4.

DLL's:
- Stimulsoft.Report.dll
- Stimulsoft.Report.Web.dll
- Stimulsoft.Report.Design.dll
- Stimulsoft.Base.dll

In my file Fuels.aspx, i have a "StiWebReport" (StiWebReport_FuelVehicle) and "StiWebViewer" (StiWebReport_Fuel). On my method "CreateReport()", there are the following code:

Code: Select all

StiReport oReport = new StiReport();

StiWebReport_Fuel.ResetReport();
StiWebReport_Fuel.UseCache = false;
DataTable dt = new DataTable();

oReport = StiWebReport_FuelVehicle.GetReport();     
oReport.Compile();

dt = Reports.GetFuels();
oReport.RegData("Fuels", dt);

StiWebReport_Fuel.Report = oReport;
The drill-down feature it isn't what I'm looking for, but is a possible solution. A Hyperlink is useful, but i tried on my DataBand1 > Propertie Interaction > Hyperlink and not work, why? Only work in my Texts Elements.

I saw the generated html and found the following:
- The "tr" tag, cannot be inside "a" tag, just the opposite.
- But if I put some link in my Text Element, the HTML will be (and works!):

Code: Select all

  <td> <a href=""> <p>test</p> </a> </td>
I will keep the solution of Hyperlink, but is possible, in the future include some Javascript or is another product of you??

Thank you for support!

Re: Popup inside Report

Posted: Tue Dec 08, 2015 7:33 am
by HighAley
Hello, Douglas.

If you need to have a link in your report. You could add next text to the text component:

Code: Select all

<a style="cursor: pointer" onclick="window.open('http://www.example.com')">your_link_text</a>
What JavaScript code do you need to use in report? Could you provide an example?

Thank you.