or
Dim rep As New webreports.reportname
rep.ReportParameters("Period").Value = "aaa"
But I want to select all items when the reports loads for the first time, after that the user can drop any selected items.
I tried:
rep.ReportParameters("Period").Value = "aaa; bbb"
but that doesn't work.
Any suggestions?
Cheers
Roel
protected void btnRun_Click(object sender, EventArgs e)
{
(ReportViewer1.Report
as ReportViewer).OrderIDParam = int.Parse(txtOrderID.Text);
ReportViewer1.RefreshReport();
}
Any help would be appreciated. Thanks.
Hi
I want to bind a picturebox Dynamically to an image field in database.
I use this code (I'm Using Northwind Database):
using (DataClasses1DataContext dc=new DataClasses1DataContext()) |
{ |
var a = from p in dc.Products |
join c in dc.Categories |
on p.CategoryID equals c.CategoryID |
select new |
{ |
ProductName=p.ProductName, |
UnitPrice=p.UnitPrice, |
UnitInStock=p.UnitsInStock, |
CatName=c.CategoryName, |
CatPic=c.Picture |
}; |
this.DataSource = a.ToList(); |
} |