powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Отчетные системы [игнор отключен] [закрыт для гостей] / cr4vs2010
3 сообщений из 3, страница 1 из 1
cr4vs2010
    #36583850
koJIo6ok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
кто пробывал поделитесь впечатлениями и рекомендациями
как пользовать то его
было :
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
CrystalDecisions.Windows.Forms.CrystalReportViewer crViewer= new CrystalDecisions.Windows.Forms.CrystalReportViewer();
ReportDocument crReport = new reports.buh.cr_ods()
using (DataTable tbl = new DataTable("ods"))
{
  using (SqlConnection cn = new SqlConnection(myClassConnect.create_bldr().ConnectionString))
    {
      using (SqlCommand cmd = cn.CreateCommand())
        {                   
          cmd.CommandText = "fil_look.ods_arrival";
          cmd.CommandType = CommandType.StoredProcedure;
          cmd.Parameters.AddWithValue("date_b", param["date_b"]);
          cmd.Parameters.AddWithValue("date_e", param["date_e"]);                    
          using (SqlDataAdapter da = new SqlDataAdapter(cmd))
            {
              cn.Open();
              da.Fill(tbl);
            }
        }
    }
crReport.SetDataSource(tbl);
crReport.SummaryInfo.ReportTitle = "ReportTitle";
crReport.SummaryInfo.ReportAuthor = "ReportAuthor";
crViewer.ReportSource = crReport;
а тут как?
Код: plaintext
1.
2.
SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer crViewer = new SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer();
???
...
Рейтинг: 0 / 0
Период между сообщениями больше года.
cr4vs2010
    #37656098
koJIo6ok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: c#
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
crReport = new cr_balances_cma_move();
using (DataTable tbl = new DataTable())
{
   using (SqlConnection cn = new SqlConnection(ConnectToDataBase.GetSqlConnectionString()))
      {
          using (SqlCommand cmd = cn.CreateCommand())
             {
                 cmd.CommandText = "proc_name";
                 cmd.CommandType = CommandType.StoredProcedure;
                 using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                    {
                       cn.Open();
                       da.Fill(tbl);
                    }
            }
       }
   crReport.SetDataSource(tbl);
   crReport.SetParameterValue(4, param["report_name"]);
   crReport.SummaryInfo.ReportAuthor = App.GetPrintInfo();
}



erorr_message - Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. Не удается найти указанный файл.

наверняка ведь кто-то сталкивался с подобным, подскажите как устранить ошибку и\или как с ним работать
...
Рейтинг: 0 / 0
cr4vs2010
    #37656570
koJIo6ok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
1 First, set your framework to 4.0 full, not the client. CR requires access to the full framework.
2 Then add this to your app.config:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Отчетные системы [игнор отключен] [закрыт для гостей] / cr4vs2010
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]