问题描述: 在StimulReports.Net报表条形码中使用国家标志 问题解答: 直接用8-bit编码.NET不是很方便,所以我们使用以下方法发送数据到条形码中,输入的条形码是一个Unicode字符串,这个字符串包含已经准备好的数据,然后条形码字符串被转换成一个字节数组,每个字符用(字节)st[index]命令 。 因此,我们有以下选项: - Latin: pass string as is. - bytes: convert to string, convert each byte of the command (char) byteArray [index]. - national characters: convert to the desired 8-bit code page, and then as a bytes array. 一个函数例子是将数据转换到需要的代码页面(您可以在报表设计器代码标签中插入一个报表): [C#] public string ToCodePage1251(string st) { byte[] bt = System.Text.Encoding.GetEncoding(1251).GetBytes(st); System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (int index = 0; index < bt.Length; index++) { sb.Append((char)bt[index]); } return sb.ToString(); }
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 如何在StimulsoftReports.Net报表中使用EAN-128条形码和FNC1命令 问题解答: Code128a, Code128b, EAN-128a, EAN-128b 条形码读取 "FNC1" 命令 (它用来聚合一个条形码中的几个数据行)。 为了向数据行中输入这个命令,要使用0x8字符。例如: {"Data1" + "\x81" + "Data2"} {"Line1 " + (char)129 + " Line2"}
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 怎样更新Stimulsoft Reports.Net报表代码 问题解答: 要用到StiReport类的ScriptUpdate方法,请参考以下示例: [C#] StiReport report = new StiReport(); report.ScriptUpdate(); [VB.Net] Dim Report As StiReport = New StiReport() Report.ScriptUpdate() 注意:在报表编译前,报表会自动更新,所以是没有必要调用ScriptUpdate方法的
关键字:
.Net报表
Stimulsoft Reports.Net
|
|
问题描述: 如何用StimulsoftReports.Net报表代码创建子商业对象 问题解答: 要用 StimulsoftReports.Net 代码创建子商业对象,请参考以下代码: [C#] StiReport report = new StiReport(); report.RegBusinessObject("Name", object); report.Dictionary.Synchronize(); StiBusinessObject businessObject = report.Dictionary.BusinessObjects["Name"]; StiBusinessObject child = new StiBusinessObject(); child.Name = "ChildName"; businessObject.BusinessObjects.Add(child); report.Dictionary.Synchronize(); 此方法还适用于Stimulsoft Reports.Wpf,Stimulsoft Reports.Ultimate 报表。
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 如何检索StimulsoftReports.Net报表中未使用的列 问题解答: 目前还没有一种代码可以百分之百的检索出哪些列是使用过的,不过你可以尝试使用报表字典的RetrievalData方法,请看示例: Hashtable usedRelations = new Hashtable(); Hashtable usedDataSources = new Hashtable(); Hashtable usedColumns = new Hashtable(); report.Dictionary.RetrievalData(out usedRelations, out usedDataSources, out usedColumns); 这串代码可以检索用于报表但不存在于数据库的字段
关键字:
.Net报表
Stimulsoft Reports.Net
|
|
问题描述: StimulReports.Net报表的WinFormsDesigner当前文件的使用问题 问题解答: 使用以下代码实现添加当前文件: designerControl.AddRecentFile(string file, object tag) 要得到所有的当前文件列表,可以使用下面的属性: designerControl.RecentFiles 使用下面的静态事件实现显示和打开: StiOptions.Engine.GlobalEvents.DisplayRecentFileInDesigner StiOptions.Engine.GlobalEvents.OpenRecentFileInDesigner
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 如何隐藏Stimulsoft Reports.Net报表设计器工具箱中的组件? 问题解答: 要实现隐藏Stimulsoft Reports.Net报表设计器工具箱中组件的目的,您需要将ServiceEnabled和PlaceOnToolbox的属性值设置为False,具体示例如下: [C#] StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiComponent)); foreach (StiComponent service in services) { if (service is Stimulsoft.Report.Chart.StiChart) { service.PlaceOnToolbox = false; service.ServiceEnabled = false; break; } }
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 如何改变StimulsoftReports.Net中WinForms设计器默认面板布局 问题解答: 要更改StimulsoftReports.Net WinForms设计器默认的面板布局,只需在services container中更改即可,请看下面的示例: [C#] Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dict = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService(); Stimulsoft.Report.Design.Panels.StiPropertiesPanelService props = Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService(); Stimulsoft.Report.Design.Panels.StiReportTreePanelService reportTree = Stimulsoft.Report.Design.Panels.StiReportTreePanelService.GetService(); Stimulsoft.Report.StiConfig.Load(); Stimulsoft.Report.StiConfig.Services.Remove(dict); Stimulsoft.Report.StiConfig.Services.Remove(props); Stimulsoft.Report.StiConfig.Services.Remove(reportTree); Stimulsoft.Report.StiConfig.Services.Add(dict); Stimulsoft.Report.StiConfig.Services.Add(props); Stimulsoft.Report.StiConfig.Services.Add(reportTree);
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: Stimulsoft Reports.Net报表输出PDF时中文出现乱码 问题解答: 注意:在将Stimulsoft Reports.Net报表导出为PDF时,必须将字体设置为微软雅黑等双字节字体,否则就会出现乱码。
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: Stimulsoft Reports.Net报表在设计时支持添加多个数据源吗 问题解答: Stimulsoft Reports.Net报表是支持添加多个数据源的,但同一个Databand或Table只支持绑定一张数据表。
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 什么是Stimulsoft Reports.Net横向切片、纵向切片 问题解答: 横向切片和纵向切片统称为多源分片。 先看一个并不复杂的例子: 实际的业务数据,是分别保存在汽车、房产、土地和其他四个表中的。(在业务数据本身的处理过程中,很可能基于汽车、房产等都还有大量的信息,字段各不相同,因此不可能将这些数据都放在一个表中) 在传统工具中,实现这个报表的办法,就是先写复杂的SQL语句,形成一个视图. 这就是一种单源、不分片的方法,对于这样一个简单的例子,用单源、不分片的传统方法尚可以实现,但是会有很多变化、很多需求,实现起来就更困难甚至不可能了。但就是这张表,做这个复杂的SQL,也是要花点功夫的。更不用说运行时的效率了。 而在支持多源分片,只需要直接使用几个类似于“select sum(汽车.抵押金额) from 汽车 group by 汽车.客户编码”这样的简单SQL作为数据库,就可以轻松实现: 也就是,在报表中直接使用四个数据源,将报表分成了四片,由于新一代报表工具支持各片之间的动态关联,所以使复杂的问题大大简化了。 报表的纵向或横向(或双向)同时被分成了多个区域就是分片,每个区域重复规则不同,而又可能相互运算。许多传统报表工具都提供子报表。子报表可以说是某一种分片的方法,但是子报表与主报表并非一个整体,不能互相运算。而我们所说的分片,是各片处于一个统一的报表当中,可以互相运算。 多源与分片是紧密相关的,往往分片后不同片需要使用不同的数据源。
关键字:
.Net报表
Stimulsoft Reports.Net
|
问题描述: 怎样将RichTextBox的文本和样式添加到报表的RichText中 问题解答: 如果想要将RichTextBox的文本及样式一起添加到报表中的RichText控件中,需将RichTextBox的内容转换为RTF格式。
关键字:
富文本
RichTextBox
|
问题描述: 怎样对Stimulsoft Reports.Wpf中的StiRichText内容赋值 问题解答: 针对您所提的问题,可参考以下回答: 要对StiRichText的内容赋值,可使用其RtfText属性,如果要导入rtf文档(目前只支持rtf格式的文档导入),可参考以下代码: StiRichText rt = report.GetComponents()["RichText1"] as StiRichText; RichTextBox rtb = new RichTextBox(); rtb.LoadFile("e:\\1.rtf"); rt.RtfText = rtb.Rtf;
关键字:
WPF报表
StimulsoftReports.Wpf
|
|
|
问题描述: 我开发的环境是asp.net c#,证书套打可以实现用户自行编辑打印字段位置、文字大小等功能吗?因为我们单位证书方面的打印特别多,如果能加强这方面的体验就可以解决我们一直存在的问题! 问题解答: 针对您所提的问题,可通过以下方法来解决。 要想实现用户自行编辑打印字段问题、文字大小等功能,可通过Stimulsoft Reports的另一个控件Stimulsoft Reports Designer.Web来将Web报表的设计器打开,这样用户即可对报表模板进行设计。 (在使用前,需先安装Stimulsoft Reports Designer.Web控件,可在http://stimulsoft.cn/product/5.html下载)
关键字:
Web报表
Stimulsoft Reports Designer.Web
|
问题描述: 客户要打印支票 打印出来的纸张还是A4的 StiReport report = new StiReport(); report.Load("C:\\Report222.mrt"); StiWebViewerFx1.Report = report; 这是页面代码 问题解答: 主要是因为WebViewerFx是使用Flash技术来视图和打印的,而Flash不具备通过代码设置打印页面大小的能力。所以在通过WebViewerFx打印时,不能通过代码来调整页面的大小,只能在打印时手动设置。
关键字:
Web报表
Stimulsoft Reports.Web
|
问题描述: 请问Stimulsoft Reports Designer.Web如何在vs.net 2008 c#环境中调用WebDesigner? 问题解答: 针对您所提的问题,可通过以下方法来解决。 1.在form中添加StiWebDesigner 组件(可直接从工具箱将其拖到form中), 2.通过以下代码调用它的Design()方法: StiWebDesigner1.Design() 如要在Web Designer中加载报表,可用以下方法: StiReport report = new StiReport(); report.Load("D:\\SimpleList.mrt"); StiWebDesigner1.Design(report);
关键字:
Web报表
Stimulsoft Reports.Web
|