I've created a Dataset (.xsd) and Report (.rpt) files in my project. I fill my Dataset via code and then set it to the Report's SetDataSource, it shows the first page fine but anything else, like next page or export triggers a login popup.
What am I doing wrong? Theres no user or pass (I guess) since I'm not making a direct access to the DB.
List<TBL_PAG_SEGURO_VENDASFields> list = controle.GetRelatorioAll();
vendasDS ds = new vendasDS();
foreach(TBL_PAG_SEGURO_VENDASFields item in list)
{
DataRow row = ds.Tables["vendas"].NewRow();
row[0] = item.RAZAO_SOCIAL;
row[1] = item.DT_VENDA;
row[2] = item.TRANSACAO_ID;
row[3] = item.SITUACAO;
row[4] = item.NOME;
row[5] = item.VALOR_VENDA;
row[6] = item.DT_LIBERACAO_PAGTO;
row[7] = item.HISTORICO_ALTERACOES;
row[8] = item.DT_FINAL_SERVICE;
ds.Tables["vendas"].Rows.Add(row);
}
ReportDocument reportDocument = new ReportDocument();
string filePath = Request.PhysicalApplicationPath + "Recursos/Reports/vendasCR.rpt";
reportDocument.Load(filePath);
reportDocument.SetDataSource(ds);
crv_Vendas.ReportSource = reportDocument;