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


C# Report.ShowPrepared方法代码示例

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


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

示例1: 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

示例2: Form_report_putevka_Load


//.........这里部分代码省略.........
                }
                if (variant == 3)
                {
                    rr.Load("spis_rassmotr.frx");
                }
                if (variant == 4)
                {
                    rr.Load("uvedom.frx");
                }
                if (variant == 5)
                {
                    rr.Load("ochered.frx");
                }
                if (variant == 6)
                {
                    rr.Load("ocheredPoV.frx");
                }
                rr.RegisterData(ElectronOcheredDataSet);
                rr.Dictionary.Connections[0].ConnectionString = Properties.Settings.Default["EOConnectionString"].ToString();
                if (variant == 0)
                {
                    if (rr.Dictionary.Connections[0].Tables.Count > 0)
                    {
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand += " WHERE (info_o_zachislen.kod_rebenok = " + kod.ToString() + ")";
                    }
                }
                else if (variant == 2)
                {
                    if (kodi.Length != 0)
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand += " WHERE ";
                    if (rr.Dictionary.Connections[0].Tables.Count > 0)
                    {
                        for (int i = 0; i < kodi.Length; i++)
                        {
                            rr.Dictionary.Connections[0].Tables[0].SelectCommand += " (info_o_zachislen.kod_rebenok = " + kodi[i].ToString() + ") OR";
                        }
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand = rr.Dictionary.Connections[0].Tables[0].SelectCommand.Remove(rr.Dictionary.Connections[0].Tables[0].SelectCommand.Length - 3);
                    }
                }
                else if (variant == 3)
                {
                    if (kodi.Length != 0)
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand += " WHERE ";
                    if (rr.Dictionary.Connections[0].Tables.Count > 0)
                    {
                        for (int i = 0; i < kodi.Length; i++)
                        {
                            rr.Dictionary.Connections[0].Tables[0].SelectCommand += " (info_rebenok.kod_info_d = " + kodi[i].ToString() + ") OR";
                        }
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand = rr.Dictionary.Connections[0].Tables[0].SelectCommand.Remove(rr.Dictionary.Connections[0].Tables[0].SelectCommand.Length - 3);
                    }
                }
                else if (variant == 4)
                {
                   /* if (rr.Dictionary.Connections[0].Tables.Count > 1)
                    {
                        rr.Dictionary.Connections[0].Tables[1].SelectCommand += " WHERE (info_rebenok.kod_info_d = " + kod.ToString() + ")";
                    }
                    if (nom_ob != null && nom_ob > 0)
                    {
                        rr.Dictionary.Parameters[0].Expression = nom_ob.ToString();
                    }
                    if (nom_po_v != null && nom_po_v > 0)
                    {
                        rr.Dictionary.Parameters[1].Expression = nom_po_v.ToString();
                    }
                    else
                    {
                        rr.Dictionary.Parameters[1].Expression = "<Возраст не подходит не под одну группу>";
                    }*/
                }
                else if (variant == 5)
                {
                    if (name_ou != "Все")
                    {

                        rr.Dictionary.Connections[0].Tables[0].SelectCommand += " AND ou.name_ou='" + name_ou + "' "
                        + " ORDER BY lgot.znachenie_lgot, info_registration.date_reg";
                    }
                    else
                    {
                        rr.Dictionary.Connections[0].Tables[0].SelectCommand += " ORDER BY lgot.znachenie_lgot, info_registration.date_reg";
                    }
                }
                else if(variant == 6)
                {
                    rr.Dictionary.Connections[0].Tables[0].SelectCommand = zapr;
                    rr.Dictionary.Parameters[0].Expression = dt1.ToShortDateString()+";";
                    rr.Dictionary.Parameters[1].Expression = dt2.ToShortDateString() + ";";
                    rr.Dictionary.Parameters[2].Expression = kod_ou.ToString();
                }
                rr.Preview = previewControl1;
                rr.Prepare();
                rr.ShowPrepared();
            }
            catch (Exception ex)
            {
                of.ErrorInfoToFile(ex);
            }
        }
开发者ID:starik222,项目名称:ElectronOchered,代码行数:101,代码来源:Form_report_putevka.cs


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