|
Crystal Report
|
|||
---|---|---|---|
#18+
prochitala statiuy http://www.gotdotnet.ru/LearnDotNet/Misc/180671.aspx vse sdelala. est funkzii: private void btnParameterLoadReport_Click(object sender, System.EventArgs e) { ws1.Service1 ws1 = new WinClientCRSh.ws1.Service1(); DataSet myDataSet = new DataSet(); ReportDocument myReport = new ReportDocument(); string ShipCountry; ShipCountry = tbShipCountry.Text; myDataSet.Merge(ws1.LoadReport(ShipCountry)); dataGrid1.DataSource = myDataSet.DefaultViewManager ; myReport.Load("CrystalReport1.rpt"); myReport.SetDataSource(myDataSet); crystalReportViewer1.ReportSource = myReport; } public DataSet LoadReport(string ShipCountry) { DataSet ds; ds = new DataSet(); sqlDataAdapter1.SelectCommand.Parameters["@ShipCountry"].Value = ShipCountry; sqlDataAdapter1.Fill(ds); return ds; } posle zapuska proekta v dataGrid1 vivodyatsya nyshnie dannie (naprimer tolko te,y kotorix ShipCountry =USA). a vot v Report vivodyatsya vse, kotorie est v report1.rpt v chem moshet bit problema? ... |
|||
:
Нравится:
Не нравится:
|
|||
26.01.2006, 12:19 |
|
|
start [/forum/topic.php?fid=31&tid=1539265]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
156ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
48ms |
get tp. blocked users: |
2ms |
others: | 250ms |
total: | 498ms |
0 / 0 |