xtrareport

Report Design Templates

旧城冷巷雨未停 提交于 2020-01-24 20:52:25
问题 We are using DevExpress XtraReports 2009v3.3 and although I can achieve what I want through various formatting objects in code, there must be a (better/less painless/maintainable/visual) way of achieving what I require... I need to produce a report, designed to end-user 'look & feel'. We have many companies which use our software and they all require different design schema's/templates for their reports. For example - a single report, depending on who logs on (we know what company they belong

Visual Studio 2017 the connection string could not be found in application settings

萝らか妹 提交于 2020-01-02 05:22:10
问题 For connection database and reading data, I am using a dataset which read connection string from Web.config file. Everything working in Visual Studio 2013. But when I opened this project in Visual Studio 2017, I can't configure. It errors: Unable to find connection string xxxx. the connection string could not be found in application settings or the data provider associated with the connection string could not be loaded 回答1: This is a TableAdapter error. TableAdapters provide communication

DevExpress XtraReport Setting a DateTime Parameter to Today

风格不统一 提交于 2019-12-23 03:29:08
问题 I am using DevXpress XtraReport v13.1 I have a dateTime parameter that I would like its default value to be current Day whenever it is used. When I leave the value of the parameter empty. it is understood by DevExpress as 1/1/0001 !!! It is important for me because the parameters will be applied as a filter to a database and I require to decrease the probability that user can fetch too much data from the database (that may affect the performance) Anyone have an idea of how to do that? 回答1: I

How can I serialize a DevExpress XtraReport report design

走远了吗. 提交于 2019-12-21 04:23:07
问题 I need to serialize a report design. This is the scenario: The app has base reports, let's say "Sales Report" with a set of pre-defined columns and design, like the corp. logo in the header. The users needs to have the ability to change that layout adding, for example, a footer with the office address, or page numbers. For doing that they need to edit the report, enter the designer and add/change what they need. This changed report layout needs to be serialized to be stored in the database

DevExpress XtraReporty Print Without any UI Interaction

一曲冷凌霜 提交于 2019-12-13 03:43:20
问题 I am having some trouble trying to get a report to print from a service that does not allow UI interaction. Currently I can do the following Dim myReport As New MyXtraReport(myData) myReport.CreateDocument() 'Then I attempt to do the following DirectCast(myReport.PrintingSystem, PrintingSystem).Print However nothing happens when I do this. I don't get any exceptions just no document is printed. Calling myReport.Print() will print the correct document but with UI interaction. What am I missing

How to pass parameters to devexpress XtraReport from combobox

让人想犯罪 __ 提交于 2019-12-11 15:42:00
问题 I have a form that contains 3 comboboxes and a button like shown below and a report that containes 3 parameters that are bounded to richtext i used the following code for this process when clicking the button Print but parameters aren't passed and richtext fields are empty private void btnPrint_Click(object sender, EventArgs e) { // Create a report instance. var report = new XtraReport1(); // Obtain a parameter, and set its value. report.ClassName.Value = cmbClass.SelectedText; report

DevExpress Xtra Reports Page Break Not Working

大城市里の小女人 提交于 2019-12-11 12:44:46
问题 Working on a project, where I generate graphs dynamically using xtra reports of the dev express suit, and am not bidning the graph to a data source. When I use a datasource to produce labels to test them out, the Detail.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBand; works. But if I am generating the labels without a data source, this doesn't work. Does anyone have a clue? 回答1: Source:forcing a conditional page break when a label text changes value To accomplish this task you can

does DevExpress XtraReports have an easily accessible notion of “current detail report being printed”?

匆匆过客 提交于 2019-12-11 06:55:50
问题 I am printing a details subreport that gets printed let's say 5 times on the overall report, for 5 query results. I compute some stuff for it with my code, and so I use BeforePrint event on an XRTable widget that I have in that subreport. So far so good. What I don't like is that when the BeforePrint executes for that table for the first time and I change its cells' text to something, that this renders on all subsequent instances of this report and table being printed. Now, obviously, since

How can I add more margin in the documentviewer?

北城以北 提交于 2019-12-10 11:44:38
问题 I have a report and this is the code for my html page: @Html.DevExpress().DocumentViewer(settings =>{ // The following settings are required for a Report Viewer. settings.Name = "documentViewer1"; settings.Report = (Misteryshopper.Reports.ResumenProyecto)ViewData["Report"]; // Callback and export route values specify corresponding controllers and their actions. // These settings are required as well. settings.CallbackRouteValues = new { Controller = "Report", Action =

How can I add more margin in the documentviewer?

走远了吗. 提交于 2019-12-08 17:27:41
I have a report and this is the code for my html page: @Html.DevExpress().DocumentViewer(settings =>{ // The following settings are required for a Report Viewer. settings.Name = "documentViewer1"; settings.Report = (Misteryshopper.Reports.ResumenProyecto)ViewData["Report"]; // Callback and export route values specify corresponding controllers and their actions. // These settings are required as well. settings.CallbackRouteValues = new { Controller = "Report", Action = "ProyectDocumentViewerPartial" }; settings.ExportRouteValues = new { Controller = "Report", Action =