??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品一区二区三区四区色 ,亚洲一区二区三区四区五区午夜,国产中文欧美日韩在线http://www.aygfsteel.com/usherlight/category/7984.html天^׃白云泉,云自无心水自闌Ӏ何必奔冲山下去Q更LL向人间Q?/description>zh-cnWed, 28 Feb 2007 04:02:36 GMTWed, 28 Feb 2007 04:02:36 GMT60DevExpress XtraReports设计器中工具控件的本地化(主要是汉化)http://www.aygfsteel.com/usherlight/archive/2006/11/08/79857.html云自无心水自?/dc:creator>云自无心水自?/author>Wed, 08 Nov 2006 07:15:00 GMThttp://www.aygfsteel.com/usherlight/archive/2006/11/08/79857.htmlhttp://www.aygfsteel.com/usherlight/comments/79857.htmlhttp://www.aygfsteel.com/usherlight/archive/2006/11/08/79857.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/79857.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/79857.html在项目中d一个类ChnReportLocalizerQ承ReportLocalizerQ将ReportLocalizercȝ所有代码拷贝过来。原来的代码q回的都是英文,我们需要全部翻译成中文
比如原来是  ?case ReportStringId.Msg_FileNotFound:
                    return "File not found.";
我们修改成:
            case ReportStringId.Msg_FileNotFound:
                    return "文g没有扑ֈ";
全部译完毕后,赋?br />DevExpress.XtraReports.Localization.ReportLocalizer.Active = new ChnReportLocalizer();
再次q行XtraReports的DesignerQ发现只有第一个Pointer被正的译了,下面的CheckBox、RichText{等都还是英文。查扑֎因发现工L的控件是动态生成的Q在XtraReports.UserDesigner.Native.AsmHelper中的函数GetToolboxItems负责往工具内d控g。控件显C的名称是ToolboxItem的DisplayName?br />
OKQ搞清楚之后开始动手修改,
1. 在XtraReports.Localization.ReportStringIdq个枚D中添加控件对应的枚DQ比如:Subreport对应d枚DgؓUD_SubreportCaptionQCheckBoxd的枚丑րgؓUD_CheckBoxCaptionQ控件名与枚丑ր的名称需要有对应关系Q因为需要用Enum.ParseҎ(gu)控g的名U映枚丑ր{?br />2. 在ChnReportLocalizer中添加对应的译Qcase ReportStringID.UD_SubreportCaption : return "子报?; {等?br />3. 在AsmHelper中修改原代码Q新生成的ToolboxItem不再直接d到ArrayList中,先进行DisplayName的本地化。先Ҏ(gu)DisplayName使用Enum.Parse获得枚D|然后调用ReportLocalizer.GetString获得本地化的字符串赋值给ToolboxItem.DisplayName?br />



]]>
XtraReports的报表编辑器http://www.aygfsteel.com/usherlight/archive/2006/09/26/72053.html云自无心水自?/dc:creator>云自无心水自?/author>Tue, 26 Sep 2006 08:53:00 GMThttp://www.aygfsteel.com/usherlight/archive/2006/09/26/72053.htmlhttp://www.aygfsteel.com/usherlight/comments/72053.htmlhttp://www.aygfsteel.com/usherlight/archive/2006/09/26/72053.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/72053.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/72053.html    先介l一下设计器的组成元? 报表设计器主要是用于使用户可以编辑报? 标准的设计器是用XRDesignFormExcL展示? q个cL供了~辑和创建报表的主要功能.
    下图是一个标准的报表设计?


    q个Form里包含了不同的元? 报表在XRDesignPanel对象中被~辑, 其他工具栏和停靠面板由XRDesignBarManager和XRDesignDockManager控制. 所有的q些控g都可以通过设计Form的XRDesignFormExBase.DesignPanel, XRDesignFormEx.DesignBarManager和XRDesignFormEx.DesignDockManager属性来操作.
    下面列D了设计器中用的元g接口.

Element

Description

Design Panelq是报表设计器的主要元g. 它展CZ一个面板用于创Z个新的报表或者编辑原有的报表. 它显C报表带q控制报表带中控件的归属, q可以移? ~放, 复制, _脓(chung)q些控g, 另外q可以在控g上绑定数? 或者进行其他的操作.  而且可以预览报表效果.
Main Menu展示报表设计器的主菜? 包含了一pd的项目和子项? 用于为用h供相x? 通常, 它复制所有的ToolBar按钮, 格式化按钮以及布局按钮.
Main Toolbar展示报表设计器的ToolBar. 包含创徏报表, 保存装蝲报表布局, 剪裁,复制,_脓(chung){按? 以及撤销, 重做{操?
Formatting Toolbar展示报表设计器的格式化Toolbar. 包含一些缺省的操作文本的按?
Layout Toolbar展示报表设计器的布局Toolbar. 包含~放, Ud一l控件位|的按钮.
Status Bar

在报表设计器底部展示StatusBar. 通常用于昄报表~辑操作q程中的Ҏ(gu)信息.
Toolbox展示报表设计器的控g工具? 包含所有报表控? 可以拖放新的控g到报表区? 可以d自定义控件到工具׃.
Report Explorer展示报表设计器的Explorer. 它显CZ报表树状l构, 使用它可以很方便地浏览整个报?
Field List展示了报表设计器的树状字D列? 昄了数据源的树状结? 用于数据绑定到报表.
Property Grid展示报表设计器的属性容? 可以修改报表元g的属?

    ȀzL表设计器: 管报表设计器是XRDesignFromEx的实? 但一般不需要手工创建此对象. 通常使用以下代码:
// Create a new report.
XtraReport1 report = new XtraReport1();

// Invoke the End-User Designer and load the report into it.
report.ShowDesigner();

// Invoke the End-User Designer and load the report into it, modally.
report.ShowDesignerDialog();



]]>
DevExpress XtraReports的控件介l?使用帮助)http://www.aygfsteel.com/usherlight/archive/2006/09/25/71701.html云自无心水自?/dc:creator>云自无心水自?/author>Mon, 25 Sep 2006 03:55:00 GMThttp://www.aygfsteel.com/usherlight/archive/2006/09/25/71701.htmlhttp://www.aygfsteel.com/usherlight/comments/71701.htmlhttp://www.aygfsteel.com/usherlight/archive/2006/09/25/71701.html#Feedback2http://www.aygfsteel.com/usherlight/comments/commentRss/71701.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/71701.html在此介绍创徏报表q程中用到的XtraReports的控? 所有的控g都可以在设计?q行?或者通过设计器添加到报表? 本文介绍的是一些最基本的信?

报表控g概览

XtraReports中的所有报表对象都通过在Bands中的控g来表? 在设计时, 报表控g可以从工Ld到报表中, 只有点击工具׃需要的控g, 然后攑ֈ报表带中卛_. 另一U方式是使用字段列DH口d控g, q种情况? 控g和数据字段l定.

如果要在q行时添加报表控? 你只需要简单地创徏一个相应类型的变量, q过XRControlCollection.AddҎ(gu)d到报表带中即?/p>

所有的报表控g包括bands都是l承自XRControl. 其中部分控g可以q作为容? q种情况下控仉合可以通过XRControl.Controls来获? 如果要获取控件的容器, 可用XRControl.Parent属?

下面列D了XtraReports中的标准报表控g.

Class Description
Subreport 用于在报表中d子报? 被添加的报表需要被包含在项目中, q设|SubReport的ReportSource属? 子报表可用于合ƈ报表和创Z从表.
WinControlContainer 用于dWindows Forms或者第三方的控? 此对实际上是d的控件的装, q提供对DrawingҎ(gu)的支?br />
XRBarCode 用于在报表中昄条Ş? 使用XRBarCode.Symbology和XRBarCode.SymbologyId来设|条形码的类?br />
XRChart 在报表中昄囑Ş, 使用此控件来Ҏ(gu)一个或多个SeriesViewTypes来展CZ同的数据.
XRCheckBox 用于在报表中展示复选框.
XRLabel 标签. 可以是单行的, 也可以是多行?
XRLine U条. 使用q个控g来画U?
XRPageBreak 换页. 如果是Band中需要换? 那么使用控g的Band.PageBreak属性比较好.
XRPageInfo 昄报表面的附加信? 可以昄늠, 日期或者其他信?
XRPanel 用于包含其他控g的控? 可以使用此控件来q行控g的分l?
XRPictureBox 在报表中昄一个图?br />
XRRichText 昄一个控? 用于昄,输入,修改格式化的文本. 可以用XRRichText.LoadFile从文件中加蝲文本.
XRTable 表格
XRTableCell 表格单元. 与XRControl.Textl定
XRTableRow 表格中的? 通过不需要用到此控g, 直接操作表格单元更普?
XRZipCode 邮政~码




]]>
DevExpress的XtraReport中的Report Bands介绍和用心?帮助文档)http://www.aygfsteel.com/usherlight/archive/2006/09/22/71268.html云自无心水自?/dc:creator>云自无心水自?/author>Fri, 22 Sep 2006 03:05:00 GMThttp://www.aygfsteel.com/usherlight/archive/2006/09/22/71268.htmlhttp://www.aygfsteel.com/usherlight/comments/71268.htmlhttp://www.aygfsteel.com/usherlight/archive/2006/09/22/71268.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/71268.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/71268.html一个普通的XtraReport报表一般包含数个包含报表控件的? 在这里介l一个XtraReports中的几种不同cd的带, 他们都有一些什么用? 又是如何d,~辑,删除.

Report Bands

在把报表d到应用之? ~省的样子如下图所C? 可以看到, 报表被初始化分ؓ3个基本的?头, 明细, 和页?, q些带中可以d不同的报表控?

每一U带指明了控件在报表中是怎样定位和被打印? 即确定了打印的顺序和ơ数. 注意, 有些<band strips>包含了带是如何被打印的信? 比如: PageHeader和PageFooterp明了是每一都有这一带的.

在创建报表时, 可以d或者删除Q意的? 在XtraReports中有很多不同cd的带, 每一个都?lt;Band>的子c? 列D如下:

Bandsc?/th> 描述
TopMarginBand 用于攄出现在报表每页头最上面的控?
ReportHeaderBand 用于攄出现在报表开头的控g
PageHeaderBand 用于攄出现在报表页上面, 仅次于TopMarginBand位置的控? 主要是用于放|需要分늚表格的头,
GroupHeaderBand 用于攄明细带中分组记录的头部控? 
DetailBand 用于昄l定数据的每条记?br />
DetailReportBand 用于创徏M报表. M关系׃报表的XtraReportsBase.DataMember属性指?
GroupFooterBand 用于攄明细带中分组记录下方的控?br />
PageFooterBand 用于攄报表下方的控g
ReportFooterBand 用于攄报表l束的控?
BottomMarginBand 用于攄报表每页最下方的控?

下图昄了不同类型的带的相对位置:

TopMarginBand and BottomMarginBand

ReportHeaderBand and ReportFooterBand

PageHeaderBand and PageFooterBand

GroupHeaderBand and GroupFooterBand

DetailBand

报表的预览显C的不是带本w? 而是<PrintingSystem>的输? PageHeaderBand, PageFooterBand, TopMarginBand和BottomMarginBand在报表预览的每一都有输? ReportHeaderBand和ReportFooterBandcd昄一? GroupHeaderBand和GroupFooterBand出现在每个记录组?





]]>
DevExpress的XtraReports使用心得(帮助文档)http://www.aygfsteel.com/usherlight/archive/2006/09/22/71256.html云自无心水自?/dc:creator>云自无心水自?/author>Fri, 22 Sep 2006 02:20:00 GMThttp://www.aygfsteel.com/usherlight/archive/2006/09/22/71256.htmlhttp://www.aygfsteel.com/usherlight/comments/71256.htmlhttp://www.aygfsteel.com/usherlight/archive/2006/09/22/71256.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/71256.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/71256.html
  XtraReport中的报表cd以与数据l定也可以不l定. 如果要创Z个绑定数据的报表, 需要查?lt;数据l定>?lt;l定数据控g>q两个主题的帮助.
  在创Z个报表时, 可以从已有的报表中加载样式和布局, 样式中包含了报表控g外观的属性? 而布局包含了报表的l构信息. 另外, q可以从其他报表pȝ中导入报? 比如: Access, 水晶报表{等, 如果要详l了解XtraReport的导入功? 请参?lt;Importing Overview>主题.
  报表c?XtraReport的子c?创徏? 可以生成其实例. 需要注意的? XtraReport对象可以在Windows Forms中用也可以在Asp.net中? 在Windows应用中用报? 通常需要维护报表的<Printing System>, q个对象提供了报表的输出功能.

  创徏报表有两U方? 一U是单地d一?模板"报表, 一U是通过报表向导来创建报? 在报表添加到目? 报表设计器提供了大量的设计时元素来加快简化报表的创徏. XtraReport工具包含了所有的控g, Report Navigator可以览整个报表, Feild List可以拖放数据字段来创Z数据l定的报表控?
   XtraReport的所有报表都是由<Report Band>?lt;Report Control>l成?
public class XtraReport1 : DevExpress.XtraReports.UI.XtraReport
{
   
private DevExpress.XtraReports.UI.DetailBand Detail;
   
private DevExpress.XtraReports.UI.PageHeaderBand PageHeader;
   
private DevExpress.XtraReports.UI.PageFooterBand PageFooter;
   
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
   
private DevExpress.XtraReports.UI.XRLabel xrLabel2;

   
private System.ComponentModel.Container components = null;

   
public XtraReport1()
   {
      InitializeComponent();
   }

   
protected override void Dispose( bool disposing )
   {
      
if( disposing )
      {
         
if(components != null)
         {
            components.Dispose();
         }
      }
      
base.Dispose( disposing );
   }
  
   
// .
 
  然后开始创建报表的l构, 首先在XtraReportBase.Bands属性中dBands, 然后在相应的Bands的XRControl.Controls属性中d控g. 报表带和控g的添加方法一般是q样?div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">// Add Detail, PageHeader and PageFooter bands to the report's collection of bands.
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {this.Detail, this.PageHeader, this.PageFooter});

// Add two XRLabel controls to the Detail band.
this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {this.xrLabel1, this.xrLabel2});
最后创建好的报表可以输出给用户看了
// Create a report.
XtraReport1 report = new XtraReport1();

// Create the report's document so it can then be previewed, printed or exported.
// NOTE: Usually you don't need to call this method as it's automatically called by all of the following methods.
// See the corresponding member topic to find out when it needs to be called.
report.CreateDocument();

// Show the form with the report's print preview.
report.ShowPreview();

// Print the report in a dialog and "silent" mode.
report.PrintDialog();
report.Print();

// Open the report in the End-User designer
report.RunDesigner();

// Export the report.
report.CreateHtmlDocument("report.html");
report.CreatePdfDocument(
"report.pdf");
report.CreateImage(
"report.jpg", System.Drawing.Imaging.ImageFormat.Gif);

? XtraReport的类l构层次?



]]>
Asp.net 2.0 中集成的表单验证控gQ完全实C用户d功能?/title><link>http://www.aygfsteel.com/usherlight/archive/2006/03/01/33011.html</link><dc:creator>云自无心水自?/dc:creator><author>云自无心水自?/author><pubDate>Wed, 01 Mar 2006 07:19:00 GMT</pubDate><guid>http://www.aygfsteel.com/usherlight/archive/2006/03/01/33011.html</guid><wfw:comment>http://www.aygfsteel.com/usherlight/comments/33011.html</wfw:comment><comments>http://www.aygfsteel.com/usherlight/archive/2006/03/01/33011.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/usherlight/comments/commentRss/33011.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/usherlight/services/trackbacks/33011.html</trackback:ping><description><![CDATA[<P>表单认证是Asp.net中最Cool的功能之一Q一般来说应用都会要求输入认证信息(典型的是用户名和密码Q?BR>在Web.config的设|项中,可以指定d面和哪些资源需要保护。当用户W一ơ访问被保存的资源时Q应用会自动定向到指定的d面?BR>如果成功dQASP.NET会{到用户初始请求的面?BR>以往的应用需要在每个面的顶部判断用h否成功登录,手工定向到登录页面,而现在这个工作由表单认证单地完成了?/P> <P>举个单的例子来说明开发过E:<BR>一个应用中有两个页面PublicPage.aspx是向公众开攄QPrivatePage.aspx只允许登录用h能访问?BR>W?个页面是d面Q要求输入用户名和密码?BR>步骤如下Q?BR>1、把PublicPage.aspx, login.aspx, web.config拯C个IIS的虚拟目录下?BR>2、创Z个子目录SecretQ将PrivatePage.aspx, web.config拯到子目录中?BR>3、在web.config中添加以下代? 实现讉K保存面自动跌{d面的功?BR><authentication mode="Forms"><BR>  <forms loginUrl="LoginPage.aspx"><BR>    ....<BR>  </forms><BR></authentication><BR>4、另外有一?lt;credentials>节列出合法用户和密?BR><credentials passwordFormat="Clear"><BR>  <user name="Jeff" password="imbatman" /><BR>  <user name="John" password="redrover" /><BR>  <user name="Bob" password="mxyzptlk" /><BR>  <user name="Alice" password="nomalice" /><BR>  <user name="Mary" password="contrary" /><BR></credentials><BR>  此例子中x了的加密选项Q缺省是开的?BR>  <BR>5、在Secret子目录的web.config中添加以下代码,实现保护功能?BR>  <authorization><BR>   <deny users="?" /><BR>  </authorization><BR>q是用于通知权限理模块System.Web.Security.UrlAuthorizationModuleL未登录用L讉K??"代表匿名用户Q也可以说是未登录用戗?BR>实际的权限验证是由Login.aspx完成的。下列语?BR> if(FormsAuthentication.Authenticate(UserName.Text,Password.Text))<BR>把用户名和密码传lSystem.Web.Security.FormsAuthenticationQ如果验证成功,q回True。ƈ且执行页面蟩转语?BR>FormsAuthentication.RedirectFromLoginPage(UserName.Text,false);</P> <P>6、真实环境的表单认证比上面的例子要复杂的多,真实应用不大可能把用户和密码保存在文本文件中Q比较常见的是存攑֜数据库中?BR>假定用户表Users?个字DUserName, password, Role.<BR>对于q种情况Q我们需要在刚才的基上进?个地方的修改QLogin.aspx、web.config(根目录下?<BR>在web.config中不再需?lt;credentials>节了?BR>login.aspx也不再?FormsAuthentication.Authenticate 来验证密码,而用CustomAuthenticate替代?BR>在这个方法中使用Sql查询语句来判断用h否合法?/P> <P>  </P> <P> </P><img src ="http://www.aygfsteel.com/usherlight/aggbug/33011.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/usherlight/" target="_blank">云自无心水自?/a> 2006-03-01 15:19 <a href="http://www.aygfsteel.com/usherlight/archive/2006/03/01/33011.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ױ</a>| <a href="http://" target="_blank">Ƥɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¤</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǿ</a>| <a href="http://" target="_blank">촨</a>| <a href="http://" target="_blank">Ӣɳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ţ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ϰ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɫ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>