我使用StimulSoftc#语言在asp.net中使用我的报告.我有一个包含3个列表的报告,一个是头列表,另外两个是详细列表.这是一份关于日期范围的法案报告.问题是我不能按照我喜欢的方式重复它们; 以下是我想要的清单和报告:
HaedList >> BillId,Coname,TotalPrice,InvoiceDate
ServiceList >> BillId,ServiceName,ServiceCost
ProductList >> BillId,ProductName,ProductCost
Run Code Online (Sandbox Code Playgroud)
用户将输入日期范围,例如2015/01/01至2015/01/03
--> Page 1
BillId=52 ---- CoName=Haaret
ServiceName=Repair,ServiceCost=12$
ServiceName=Cleaning,ServiceCost=2$
ProductName=DVD,ProductCost=10$
ProductName=CPU,ProductCost=60$
ProductName=VGA,ProductCost=40$
TotalPrice=124$
Tax=4$
Total >> 120$
--> Page 2
BillId=55 ---- CoName=GirBold
ServiceName=Training,ServiceCost=300$
ProductName=Pen,ProductCost=5$
ProductName=NoteBooks,ProductCost=10$
TotalPrice=315$
Tax=4$
Total >> 311$
--> Page 3
BillId=70---- CoName=DrillPort
ServiceName=Driver,ServiceCost=30$
ServiceName=Test,ServiceCost=10$
ProductName=Battery,ProductCost=35$
ProductName=Monitors,ProductCost=200$
TotalPrice=275$
Tax=4$
Total >> 271$
Run Code Online (Sandbox Code Playgroud)
所以我有3天的范围,我应按以下顺序打印4页.我的问题是,头部重复三次,然后是所有服务打印,然后是产品,然后是头部的摘要,如下所示:
BillId=52 ---- CoName=Haaret
BillId=70---- CoName=DrillPort
BillId=55 ---- CoName=GirBold
ServiceName=Repair,ServiceCost=12$
ServiceName=Cleaning,ServiceCost=2$
ServiceName=Driver,ServiceCost=30$
ServiceName=Test,ServiceCost=10$
ServiceName=Training,ServiceCost=300$
ProductName=DVD,ProductCost=10$
ProductName=CPU,ProductCost=60$
ProductName=VGA,ProductCost=40$
ProductName=Pen,ProductCost=5$
ProductName=NoteBooks,ProductCost=10$
ProductName=Battery,ProductCost=35$
ProductName=Monitors,ProductCost=200$
TotalPrice=124$ …Run Code Online (Sandbox Code Playgroud) public virtual ActionResult GetReportSnapshot()
{
var data = (ComparativeBalanceReportDS) TempData["ComparativeSession"];
StiReport report = new StiReport();
report.Load(Server.MapPath("~/Content/StimulReports/SampleReport.mrt"));
report.Compile();
report["fromDocumentNumber"] = "1";
report["toDocumentNumber"] = "85";
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
Run Code Online (Sandbox Code Playgroud)
我有存储过程并在设计器中执行但我没有向它发送参数,当运行App时,我收到以下错误:
错误:SqlCommand.Prepare方法要求所有可变长度参数都具有显式设置的非零大小.
我该怎么办?
我创建了一个 C# 程序并连接到 stimulsoft 以生成报告。
我使用以下代码将带有 2 个数据表的数据集发送到我的报告:
DataSet ds = new DataSet();
dtP.TableName = "dtP";
dtF.TableName = "dtF";
ds.Tables.Add(dtP);
ds.Tables.Add(dtF);
Report.RegData(ds);
Report.Show();
Run Code Online (Sandbox Code Playgroud)
和“报告”是stireport对象。
当我的报告页面显示时。我的报告是空的。
当仅将 1 个数据表作为数据集发送到我的报告时,效果很好。
解决:
将以下代码添加到我的 c# 程序可以解决我的问题:
objStiReport.Dictionary.Clear();
objStiReport.RegData(ds);
objStiReport.Dictionary.Synchronize();
Run Code Online (Sandbox Code Playgroud) Stimulsoft报告Unicode字符(阿拉伯语或波斯语)在下面的富文本中错误:编译错误编译错误可在'RichText1'组件的'Text'属性中找到:意外字符'\'
在richtext中创建一个rtf文件并输入文本和变量,在预览错误中打开此文件.
太unicode charecter凌乱
??? ???????
ãÏíÑ1
Run Code Online (Sandbox Code Playgroud) 为了在 Asp.net MVC 中获取 Pdf 报告,我正在使用 Stimulsoft 2015。问题是我不知道如何转换我的代码以便在 Asp.net Core 中使用 Stimulsoft Core。似乎 Stimulsoft Core 中的某些功能不再可用(如 StiReport)。
这是在 Asp.net MVC 中运行良好的代码
public ActionResult GetReportSnapshot(string sort)
{
StiReport report = new StiReport();
report.Load(Server.MapPath("~/Reports/Jobs.mrt"));
report["@PrjectId"] = 1;
report["@OrderBy"] = sort;
report.Dictionary.Variables["title"] = new Stimulsoft.Report.Dictionary.StiVariable("title", sort);
report.Render();
MemoryStream stream = new MemoryStream();
report.ExportDocument(StiExportFormat.Pdf, stream);
stream.Position = 0;
FileStreamResult fsr = new FileStreamResult(stream, "application/pdf");
return fsr;
}
Run Code Online (Sandbox Code Playgroud)
我将不胜感激任何帮助。
我有一些仓库,其中有一些列,例如名称、位置和其他内容,并且我有用户可以添加到数据库中的产品。每个仓库都有一定数量的每种产品。
我想添加产品列并计算每个仓库中每种产品的数量,如下所示:
| 仓库 | B栏 | 产品A | 产品B | 产品C |
|---|---|---|---|---|
| WH1 | A | 50 | 30 | 60 |
| WH2 | 乙 | 70 | 12 | 25 |
| WH3 | C | 35 | 0 | 12 |
| WH4 | D | 0 | 0 | 10 |
我怎样才能获得这个结果,特别是当用户添加新列时?
我得到了一些交叉数据的结果,但我不知道数据需要什么格式以及需要设置什么过滤器。我发现了这个,但我不知道获得我想要的结果的步骤。
我们在系统中遇到了以下问题.
我们有几个报告,用Stimulsoft建立.报告使用SQL Server作为数据源(而不是存储过程,脚本中提供了SQL代码).
当我们在管理工作室中运行sql脚本时 - 每个脚本在3-5秒内运行.当stimulsoft建立报告时,需要20秒.这很好 - 因为报告是交叉表报告,应该是很多计算.
我们使用Windows Server 2008 R2 64位.IIS进程w3wp.exe以32位模式运行.当我们运行10个不同的报告,他们每个人300-400 M.增加的w3wp.exe内存使用,当它到达几乎2GB,以下报告停止执行.
任何想法如何说w3wp作为64位进程运行?
我正在使用StimulSoft软件在我的asp.net mvc项目中显示报告.
在我的报告中,所有事情都没问题,但在打印预览中,我的字体尚未应用.
我report.cshtml通过使用将我的字体附加到文件中font-face.
我怎么解决这个问题?
我正在用Stimulsoft创建报告。我有一个有条件的GroupHeader乐队和GroupFooter乐队。报告工作正常,但是我需要我的报告才能将每个组打印在单独的页面上。是否有任何方法可以将报告根据不同的组分为不同的页面?
我想在ASP.NET网页中显示使用stimulsoft生成的报告.我已加载报告并使用以下代码注册与报告相关的数据源.但是我在网页中显示它有问题.我该怎么做才能在网页中显示它.
StiReport report = new StiReport();
report.Load("D:/Work/AllClassifieds/DevSourceBranch/WebSolution/Website/Reports/Price Sensitivity/PriceSensitivity.mrt");
report.RegData("PriceSensitivityData", ds);
Run Code Online (Sandbox Code Playgroud) 我想将我byte array从sql数据库(varbinary)获取的徽标传递给我的stimulsoft报告,使用变量并在标题中的图像组件中显示.
任何人都可以帮忙吗?
如何在 asp.net core 中使用其变量和参数呈现报告并以角度显示?
角度:
viewer: any = new Stimulsoft.Viewer.StiViewer(null, 'StiViewer', false);
report: any = new Stimulsoft.Report.StiReport();
this.report.load("the report get from my api"); // ???
this.viewer.report = this.report;
this.viewer.renderHtml('viewer');
Run Code Online (Sandbox Code Playgroud)
Asp.net核心:
public async Task<IActionResult> GetReport()
{
StiReport report = new StiReport();
report.Load(@"D:\myreport.mrt"); // for example load it from local
// set parameters and variables here.it's ok
// this return does not prepare report for showing in angular.It uses for view of action
return StiNetCoreViewer.GetReportResult(this, report);
}
Run Code Online (Sandbox Code Playgroud)
如何以这种方法准备报告以正确显示角度?
我有一个可以计算某些商品成本的网站,我使用Stimulsoft报告为我的客户创建一个简单的因子表,并且在因子表中(例如:MyProblem)一起使用波斯字母,英文字母和数字,并设置页面我的网站中的方向是从右到左(因为我的语言是波斯语),但是当我在我的网站中单击“创建”报告时,网站将参数传递给报告并进行创建,会破坏安排。似乎从右到左不起作用。
Summery :在stimulsoft设计器中,我们只能以从左到右的状态进行设计,当将其运行到从右到左的状态的网站中时,它会破坏元素,数字,字母等的排列。
谢谢。
stimulsoft ×13
c# ×5
report ×4
asp.net-core ×2
asp.net-mvc ×2
angular ×1
asp.net ×1
dataset ×1
direction ×1
iis ×1
persian ×1
reporting ×1
unicode ×1
w3wp ×1
wpf ×1