|
Ошибка при локальной обработке отчета
|
|||
---|---|---|---|
#18+
Всем доброго времени суток. ВОзникла необходимость генерировать отчёты по манагерам и отсылать им. Попытался сделать в 12-й студии через консольное приложение. DataSet1TableAdapters.MayProcTableAdapter ProcTableAdapter = new OrderByMail.DataSet1TableAdapters.MayProcTableAdapter(); reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); BindingSource1 = new System.Windows.Forms.BindingSource(); BindingSource1.DataMember = "MayProc"; BindingSource1.DataSource = baseS; reportDataSource1.Name = "DataSet1_MayProc"; reportDataSource1.Value = BindingSource1; baseS.DataSetName = "BaseSDataSet"; baseS.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer(); reportViewer1.LocalReport.DataSources.Add(reportDataSource1); reportViewer1.LocalReport.ReportEmbeddedResource = "OrderByMail.Report1.rdlc"; OrderSuppHeadUIReportNotWorkingDayTableAdapter.ClearBeforeFill = true; OrderSuppHeadUIReportNotWorkingDayTableAdapter.Fill(baseS.MayProc); reportViewer1.RefreshReport(); format = "EXCEL"; warnings = null; streamIDs = null; file = args[1]; devInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>"; fileContent = reportViewer1.LocalReport.Render(format, devInfo, out mime, out encode, out ext, out streamIDs, out warnings); fs = new FileStream(file, FileMode.Create); fs.Write(fileContent, 0, fileContent.Length); fs.Close(); ругается вот на эту строку fileContent = reportViewer1.LocalReport.Render(format, devInfo, out mime, out encode, out ext, out streamIDs, out warnings); пишет: Ошибка при локальной обработке отчета при просмотре детализации ошибки написано следующее "Ошибка при обработке отчета" Не удалось создать модуль чтения данных для набора данных \"DataSet1\"." ... |
|||
:
Нравится:
Не нравится:
|
|||
10.07.2014, 07:45 |
|
Ошибка при локальной обработке отчета
|
|||
---|---|---|---|
#18+
Ответ найден ... |
|||
:
Нравится:
Не нравится:
|
|||
10.07.2014, 07:55 |
|
Ошибка при локальной обработке отчета
|
|||
---|---|---|---|
#18+
funny, потрудитесь, пожалуйста, найденный ответ и нам предоставить. ... |
|||
:
Нравится:
Не нравится:
|
|||
10.07.2014, 08:22 |
|
|
start [/forum/topic.php?fid=20&msg=38692650&tid=1402717]: |
0ms |
get settings: |
14ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
41ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
44ms |
get tp. blocked users: |
1ms |
others: | 328ms |
total: | 460ms |
0 / 0 |