dinamic report

Stimulsoft Reports.WEB discussion
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

i tryed to do my report dinamic but it didnt work.
for example: I added click event to stiText that open a messageBoxe exactly like your video
but I click and nothing hapend
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

dinamic report

Post by Andrew »

Hello,

Could you, please send us detailed information regarding the problems you met. If possible, please do it in a step-by-step way.

Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

I did exactly as you've showed in your video. I tried both options: 1. Sort the report by pressing the field, like it's shown in your video. 2. When pressing the field - a message box is displayed. In both case the report problem is that, there's no response for the pressing. Thre written code is correct, according to your video, but nothing happens.
We bought the controller, and our customer insists that a Sort option will be enabled - BUt the controller doesn't respond.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

dinamic report

Post by Ivan »

Hello,

Please provide more details regarding your issue.
Can you please send us a simple test project, which reproduce the issue?

Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

here my report

I used with your xml Demo and added a sorting column:"DataCustomers.CompanyName" to the header column: "HeaderCustomers_CompanyName"
and clickEvent: "MessageBox.Show("ContactName")" to the header column: "HeaderCustomers_ContactName"







Connection
Connection
C:\Program Files\Stimulsoft Reports.Web 2011.1\Samples\C#\WebDemo\Data\Demo.xml
C:\Program Files\Stimulsoft Reports.Web 2011.1\Samples\C#\WebDemo\Data\Demo.xsd




Customers

CustomerID,System.String
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String


Customers
Connection.Customers






EngineV2




None;Black;2;Solid;False;4;Black
Transparent


Transparent
0,0.4,19,0.8


All;Black;1;Solid;False;4;Black
[183:117:64]
0,0,4.8,0.8

Arial,16,Bold
Center

DataCustomers.CompanyName

0,0,0,0
HeaderCustomers_CompanyName


CompanyName
White
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
[183:117:64]
MessageBox.Show("ContactName")
4.8,0,4.8,0.8

Arial,16,Bold
Center
0,0,0,0
HeaderCustomers_ContactName


ContactName
White
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
[183:117:64]
9.6,0,4.8,0.8

Arial,16,Bold
Center
0,0,0,0
HeaderCustomers_ContactTitle


ContactTitle
White
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
[183:117:64]
14.4,0,4.6,0.8

Arial,16,Bold
Center
0,0,0,0
HeaderCustomers_Phone


Phone
White
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center



HeaderCustomers




Transparent

0,2,19,0.8


All;Black;1;Solid;False;4;Black
Transparent
True
0,0,4.8,0.8

Arial,8
0,0,0,0
DataCustomers_CompanyName


{Customers.CompanyName}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
Transparent
True
4.8,0,4.8,0.8

Arial,8
0,0,0,0
DataCustomers_ContactName


{Customers.ContactName}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
Transparent
True
9.6,0,4.8,0.8

Arial,8
0,0,0,0
DataCustomers_ContactTitle


{Customers.ContactTitle}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


All;Black;1;Solid;False;4;Black
Transparent
True
14.4,0,4.6,0.8

Arial,8
0,0,0,0
DataCustomers_Phone


{Customers.Phone}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center



Customers

DataCustomers






cc2f53a3207a4aaeb63b7e59142fd075
1,1,1,1
Page1
29.7
21


Arial,100
[50:0:0:0]





System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll

Report
6/19/2011 7:02:37 AM
5/30/2011 1:33:02 PM
C:\Documents and Settings\Administrator\Desktop\webReport.mrt
1e050761420e47bd8c540a5989f97d89
Report
Centimeters
2011.2.1009
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report() {
this.InitializeComponent();
}

#region StiReport Designer generated code - do not modify
#endregion StiReport Designer generated code - do not modify
}
}

CSharp

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

dinamic report

Post by Ivan »

Hello,

If we diagnose the issue in the correct way, you use the StiWebViewer component.
But interaction do not work in this viewer.
Please use the StiWebViewerFx component.
Also, the code in the events wil not work in the WebViewers, only in Net/Wpf viewers.

Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

Hello,
Thnk you,

I use the StiWebViewerFx component and its work.

but why when I doing "RegData" its not work?

hear is my code:

protected void Page_Load(object sender, EventArgs e)
{
StiReport report = new StiReport();
DataSet data = new DataSet();
report.Load(@"C:\Documents and Settings\Administrator\Desktop\Hani___\tryDinamicReport\webReport.mrt");
data.ReadXml(@"C:\Documents and Settings\Administrator\Desktop\Hani___\tryDinamicReport\Demo.xml");
report.RegData(data);
StiWebViewerFx1.Report = report;
}

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

Please try to use the following code:

Code: Select all

report.RegData(data);
report.Render();
StiWebViewerFx1.Report = report;
Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

hello,

no,Its doesn't work,

also when I Do gust "report.Render();" without "report.RegData(data);" -Its doesn't work

I hope to get answer soon because our customer insists that a Sort option will be enabled

thenk you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
Post Reply