Backup/JinYeTransportCostsSystem/ReportForms/ConsolidatedStatements.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
namespace JinYeTransportCostsSystem.ReportForms
{
public partial class ConsolidatedStatements : Form
{
public ConsolidatedStatements()
{
InitializeComponent();
}
private void ConsolidatedStatements_Load(object sender, EventArgs e)
{
// Dim dt As DataTable
//Dim Bll As New DjQueryBll
//Dim rpt As New ReportDocument
//Dim paramFields As New ParameterFields
//Dim Err As String
//dt = New DataTable
//Err = Bll.BbQueryFKD(Pint_FKD_djbh, dt)
//rpt.Load("dj_Fkd.rpt")
//rpt.SetDataSource(dt)
//CrystalReportViewer1.ParameterFieldInfo = paramFields
//CrystalReportViewer1.ReportSource = rpt
ReportDocument crystalReport1 = new ReportDocument();
string bbpath = Application.StartupPath + "\\hzbb.rpt";
crystalReport1.Load(bbpath);
//crystalReport1.SetDatabaseLogon("sa", "123456", @"SYWZSWL\SQLEXPRESS", "Test");
//crystalReport1.SetParameterValue("Title", "这是一个测试报表");
//crystalReport1.SetParameterValue("Parm", "1");
crystalReportViewer1.ReportSource = crystalReport1;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
