当前位置: 首页>>代码示例>>C#>>正文


C# Report.Load方法代码示例

本文整理汇总了C#中Report.Load方法的典型用法代码示例。如果您正苦于以下问题:C# Report.Load方法的具体用法?C# Report.Load怎么用?C# Report.Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Report的用法示例。


在下文中一共展示了Report.Load方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: frmPregledDobavljacaPoTrgovinama_KeyDown

        private void frmPregledDobavljacaPoTrgovinama_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F5)
            {
                 try
                    {
                        DataTable artikli = new DataTable();

                        veza.ExecuteQuery("select partner.pa_sifra, partner.pa_naziv, poslovnica.po_naziv from dobavljacposlovnica, partner, poslovnica where dobavljacposlovnica.poslovnica_po_ID = poslovnica.po_ID and dobavljacposlovnica.partner_pa_ID = partner.pa_ID and dobavljacposlovnica.poslovnica_po_ID = "+glDobavljac.EditValue+" order by partner.pa_naziv", ref artikli);

                        if (gridView1.RowCount > 0)
                        {
                            //create dataset
                            DataSet FDataSet = new DataSet();
                            artikli.TableName = "Artikli";
                            FDataSet.Tables.Add(artikli);

                            // create report instance
                            Report report = new Report();

                            // load the existing report
                            System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                            string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                            report.Load(baseDir + "/report/dobavljac_trgovina.frx");

                            // register the dataset
                            report.RegisterData(FDataSet);

                            //dizajn
                            //report.Design();

                            // run the report
                            report.Show();

                            // free resources used by report
                            report.Dispose();
                        }
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                //string IDposlovnica = glDobavljac.EditValue.ToString();

                //System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                //string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                //report1.Load(baseDir + "/report/dobavljac_trgovina.frx");

                //report1.SetParameterValue("poslovnicaID", IDposlovnica);
                ////report1.Load("C:/Users/IvanS/Documents/Visual Studio 2010/Projects/odobrenja_3.3/Report.frx");
                //report1.Show();
            }
            else if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:59,代码来源:Pregled+dobavljaca+za+trgovinu.cs

示例2: PrepareReport

 public Report PrepareReport(Resume resume)
 {
     Report report = new Report();
     report.Load(Environment.CurrentDirectory + @"\Templates\About.frx");
     PictureObject picture = report.FindObject("Picture1") as PictureObject;
     picture.ImageLocation = Environment.CurrentDirectory + @"\Templates\logo.png";
     report.Prepare();
     return report;
 }
开发者ID:vincentlauvlwj,项目名称:FrameDAL,代码行数:9,代码来源:AboutReportGenerator.cs

示例3: PrintPreview

 public static void PrintPreview(DataTable data, string fileName)
 {
     Report report = new Report();
     report.Load(fileName);
     report.RegisterData(data, fileName);
     //这样就可以预览数据了
     report.Show();
     report.Dispose();
 }
开发者ID:yangdaichun,项目名称:ZHXY.ZSXT,代码行数:9,代码来源:PrintHelper.cs

示例4: showInfedenceLKK

 public void showInfedenceLKK(string id)
 {
     Database dataToReport = new Database();
     DataSet rep = new DataSet();
     rep = dataToReport.getInfedenceLKK (id);
     Report infedence = new Report();
     infedence.Load("infedence.frx");
     infedence.RegisterData(rep);
     infedence.Show();
 }
开发者ID:unix-admin,项目名称:lkk,代码行数:10,代码来源:ReportLKK.cs

示例5: btnListaUkupno_Click

        private void btnListaUkupno_Click(object sender, EventArgs e)
        {
            if (dgArtikli.Rows.Count > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = pregled_akcijskih_nabavnih_cijena.Tables["Table"].Copy();
                    string partner = glDobavljac.Text;
                    string datumOD = Convert.ToDateTime(dtpODkada.Text).ToString("dd-MM-yyyy");
                    string datumDO = Convert.ToDateTime(dtpDokada.Text).ToString("dd-MM-yyyy");

                    //pregled_akcijskih_nabavnih_cijena.PregledAkcNabCijena.Copy();
                    //pregled_akcijskih_nabavnih_cijena.PregledAkcNabCijena.CopyToDataTable(artikli,LoadOption.Upsert);

                    //veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (dgArtikli.Rows.Count > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/PregledAkcNabCijena.frx");

                        // register the dataset
                        report.RegisterData(FDataSet);
                        report.SetParameterValue("Partner", partner);
                        report.SetParameterValue("DatumOD", datumOD);
                        report.SetParameterValue("DatumDO", datumDO);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:55,代码来源:Pregled+akcijskih+nabavnih+cijena.cs

示例6: FrmReportViewer_Load

        private void FrmReportViewer_Load(object sender, EventArgs e)
        {
            var report  = new Report();

            report.Load(@"..\..\fs.frx");

            report.Preview = previewControl1;

            report.Prepare();
            report.ShowPrepared();
        }
开发者ID:ysjr-2002,项目名称:DeviceTest,代码行数:11,代码来源:FrmReportViewer.cs

示例7: showReportLKK

        public void showReportLKK(string id, DataTable results)
        {
            Report reportLKK = new Report();
            if (Program.status == 0)
            {
                reportLKK.Load("report.frx");
            }
            else
            {
                reportLKK.Load("register.frx");
            }
            reportLKK.RegisterData(results, "resultData");
            if (id != "")
            {
                DataBand dataBand = reportLKK.FindObject("reportData") as DataBand;
                dataBand.Filter = "[resultData.id]==" + id;

            }
            reportLKK.Show();
        }
开发者ID:unix-admin,项目名称:lkk,代码行数:20,代码来源:ReportLKK.cs

示例8: DanfeFrNfe

        /// <summary>
        /// Construtor da classe reponsável pela impressão do DANFE da NFe em Fast Reports
        /// </summary>
        /// <param name="proc">Objeto do tipo nfeProc</param>
        /// <param name="configuracaoDanfeNfe">Objeto do tipo configuracaoDanfeNfe contendo as definições de impressão</param>
        public DanfeFrNfe(nfeProc proc, ConfiguracaoDanfeNfe configuracaoDanfeNfe)
        {
            #region Define as varíaveis que serão usadas no relatório (dúvidas a respeito do fast reports consulte a documentação em https://www.fast-report.com/pt/product/fast-report-net/documentation/)

            Relatorio = new Report();
            Relatorio.RegisterData(new[] { proc }, "NFe", 20);
            Relatorio.GetDataSource("NFe").Enabled = true;
            Relatorio.Load(new MemoryStream(Properties.Resources.NFe));
            ((PictureObject)Relatorio.FindObject("poEmitLogo")).Image = configuracaoDanfeNfe.ObterLogo();

            #endregion
        }
开发者ID:luispelin,项目名称:Zeus.Net.NFe.NFCe,代码行数:17,代码来源:DanfeFrNfe.cs

示例9: btnIzvjestaj_Click

        private void btnIzvjestaj_Click(object sender, EventArgs e)
        {
            if (gridView2.RowCount > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = dodatnePozicijeZaTrgovinu.DodatneTrgovina.CopyToDataTable();
                    string datOD =  Convert.ToDateTime(dtpDatumOD.Text).ToString("dd-MM-yyyy");
                    string datDO = Convert.ToDateTime(dtpDatumDO.Text).ToString("dd-MM-yyyy");
                    //string skladisteBroj = txtSkladiste.Text;
                    //string brojNarudzbe = txtBrojNarudzbe.Text;

                    //veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (gridView2.RowCount > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/DogovorenePozicijeTrgovina.frx");
                        report.SetParameterValue("datumod", datOD);
                        report.SetParameterValue("datumdo", datDO);

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:52,代码来源:Pregled+pozicija+za+trgovinu.cs

示例10: btnIspisi_Click

        private void btnIspisi_Click(object sender, EventArgs e)
        {
            try
            {
                if (dgPodaci.RowCount > 0)
                {
                    try
                    {
                        DataTable artikli = new DataTable();
                        artikli = slanje_na_knjizenje.SlanjeNaKnjizenje.CopyToDataTable();
                        string datumSlanja = Convert.ToDateTime(dtpPredaja.EditValue).ToString("dd.MM.yyyy");

                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/Knjizenje3.frx");
                        report.SetParameterValue("datumSlanja", datumSlanja);

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }

                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
开发者ID:sokac237,项目名称:Urudzbeni,代码行数:51,代码来源:Slanje+na+knjizenje+ispis.cs

示例11: PrepareReport

 public Report PrepareReport(Resume resume)
 {
     using (ISession session = AppContext.Instance.OpenSession())
     {
         Report report = new Report();
         report.Load(Environment.CurrentDirectory + @"\Templates\极致简约.frx");
         report.RegisterData(GetPersonInfo(session, resume), "person_info");
         report.RegisterData(GetEducationBackground(session, resume), "education_background");
         report.RegisterData(GetWorkExperience(session, resume), "experience");
         report.RegisterData(GetProjectExperience(session, resume), "project_experience");
         report.RegisterData(GetProfessionalSkill(session, resume), "professional_skill");
         report.RegisterData(GetAward(session, resume), "award");
         return report;
     }
 }
开发者ID:vincentlauvlwj,项目名称:FrameDAL,代码行数:15,代码来源:ConciseReportGenerator.cs

示例12: GenderPDFReport

 public void GenderPDFReport(LisReport lr, string rootPath)
 {
     //DataSet ds = CreateDataSet("ReportTables.frd");
     DataSet ds = GetPrintDataSet("ReportTables.frd");
     FillDataSet(lr, ds);
     Report report = new Report();
     //获取模板
     string modelName = GetReportModelName(lr);
     //获取生成文件全路径
     string fileFullName = GenderFileFullName(lr.ReportInfo, rootPath, lr.OrderNo);
     report.Load(GetReprotModelPath(modelName));
     report.RegisterData(ds);
     report.Prepare();
     PDFExport export = new PDFExport();
     report.Export(export, fileFullName);
     report.Dispose();
 }
开发者ID:XYSWLK,项目名称:XYSTest,代码行数:17,代码来源:PDFManager.cs

示例13: btnAsortimanCjenik_Click

        private void btnAsortimanCjenik_Click(object sender, EventArgs e)
        {
            if (gridView2.RowCount > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (artikli.Rows.Count > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/ListaAsortimanCjenik.frx");

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:44,代码来源:Pregled+poslovnica+po+kategoriji.cs

示例14: DanfeFrNfce

        /// <summary>
        /// Construtor da classe reponsável pela impressão do DANFE da NFCe em Fast Reports
        /// </summary>
        /// <param name="proc">Objeto do tipo nfeProc</param>
        /// <param name="configuracaoDanfeNfce">Objeto do tipo ConfiguracaoDanfeNfce contendo as definições de impressão</param>
        public DanfeFrNfce(nfeProc proc, ConfiguracaoDanfeNfce configuracaoDanfeNfce)
        {
            #region Define as varíaveis que serão usadas no relatório (dúvidas a respeito do fast reports consulte a documentação em https://www.fast-report.com/pt/product/fast-report-net/documentation/)

            _relatorio = new Report();
            _relatorio.RegisterData(new[] { proc }, "NFCe", 20);
            _relatorio.GetDataSource("NFCe").Enabled = true;
            _relatorio.Load(new MemoryStream(Properties.Resources.NFCe));
            _relatorio.SetParameterValue("NfceDetalheVendaNormal", configuracaoDanfeNfce.DetalheVendaNormal);
            _relatorio.SetParameterValue("NfceDetalheVendaContigencia", configuracaoDanfeNfce.DetalheVendaContigencia);
            ((PictureObject) _relatorio.FindObject("poEmitLogo")).Image = configuracaoDanfeNfce.ObterLogo();
            ((TextObject)_relatorio.FindObject("txtUrl")).Text = EnderecadorDanfeNfce.ObterUrl(proc.NFe.infNFe.ide.tpAmb, proc.NFe.infNFe.ide.cUF, TipoUrlDanfeNfce.UrlConsulta);
            ((BarcodeObject)_relatorio.FindObject("bcoQrCode")).Text = EnderecadorDanfeNfce.ObterUrlQrCode(proc, configuracaoDanfeNfce);

            //Segundo o Manual de Padrões Padrões Técnicos do DANFE - NFC - e e QR Code, versão 3.2, página 9, nos casos de emissão em contigência deve ser impresso uma segunda cópia como via do estabelecimento
            _relatorio.PrintSettings.Copies = proc.NFe.infNFe.ide.tpEmis == TipoEmissao.teNormal ? 1 : 2;

            #endregion
        }
开发者ID:elyfran,项目名称:Zeus.Net.NFe.NFCe,代码行数:24,代码来源:DanfeFrNfce.cs

示例15: ispis

        public void ispis(string broj)
        {
            try
            {
                DataTable finacijsko = new DataTable();

                veza.ExecuteQuery("select partner.pa_sifra, partner.PA_NAZIV, gratis.gr_datum, gratis.akc_broj, gratis.gr_vrijednostsnizenja, gratis.gr_zapisnik, poslovnica.po_sifra, poslovnica.po_naziv from gratis left join poslovnica on poslovnica.po_id=gratis.poslovnica_PO_ID left join partner on partner.PA_ID=gratis.partneri_PA_ID where gratis.akc_broj ='"+broj+"'", ref finacijsko);

                if (finacijsko.Rows.Count > 0)
                {
                    //create dataset
                    DataSet FDataSet = new DataSet();
                    finacijsko.TableName = "Financijsko";
                    FDataSet.Tables.Add(finacijsko);

                    // create report instance
                    Report report = new Report();

                    // load the existing report
                    System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                    string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                    report.Load(baseDir + "/report/Financijsko_snizenja.frx");

                    // register the dataset
                    report.RegisterData(FDataSet);
                    report.SetParameterValue("Mjesec", "2");

                    //dizajn
                    //report.Design();

                    // run the report
                    report.Show();

                    // free resources used by report
                    report.Dispose();
                }
            }
            catch (Exception ex)
            {
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:42,代码来源:Snizenja+obracun.cs


注:本文中的Report.Load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。