or
protected
void
Page_Load(
object
sender, EventArgs e)
{
ClassLibrary1.Report.FolhaCarga report =
new
ClassLibrary1.Report.FolhaCarga();
report.DataSource =
this
.FolhaCargaCollection;
Telerik.Reporting.InstanceReportSource reportSource =
new
Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
this
.ReportViewer1.ReportSource = reportSource;
ReportViewer1.RefreshReport();
}
Report novoReport = (
new
GCReport.Sistema.CadastroBairro());
List<BairroInfo> list =
new
List<BairroInfo>();
if
(
this
.IdCidade > 0)
{
list = (
new
BairroBLL()).ConsultarPorIdCidade(
this
.IdCidade).
OrderBy(obj => obj.NomeBairro).
OrderBy(obj => obj.Cidade.NomeCidade).OrderBy(obj => obj.Cidade.Estado.NomeEstado).
OrderBy(obj => obj.Cidade.Estado.Pais.NomePais).ToList(); ;
}
novoReport.ReportParameters[
"Rodape"
].Value = Resources.Label.Rodape;
novoReport.ReportParameters[
"GeradoPor"
].Value = Resources.Label.GeradoPor;
//CRED.Usuario.Pessoa.Foto = Byte[] from sql database
//Image parameters = string type / multivalue = false
novoReport.ReportParameters[
"Image"
].Value = CRED.Usuario.Pessoa.Foto;
novoReport.DataSource = (
new
ReportContainer<BairroInfo>(list[0]));
rvBairro.Report = novoReport;
rvBairro.RefreshReport();
this
.pictureBox1.Value =
"= Parameters.Image.Value"
;