
AlexTZ
AlexTZ
About
- Username
- AlexTZ
- Joined
- Visits
- 0
- Last Active
- Roles
- FR Team
Comments
-
Hello, Your code does not pass anything to the report template. Please clarify what you need to do - - create the chart in code; - or pass some static data to the fully configured chart in a report
-
Hello, In this case you should not use parameters. Replace the sql text in code: TableDataSource table = Report.GetDataSource("Your_table") as TableDataSource; table.SelectCommand = "select * from .... ";
-
Hello, You may use TextObject object with HtmlTags = true. Put the following text in it: [[YourTable.Column1].Replace("?®", "?®")]
-
I will add the bool parameter to the AddTab method in the next build.
-
Hello, 1) yes, you can. 2) there are many connectors with source code available here: http://www.fast-report.com/pbc_download/FRNetConnections.zip 3) the only way is to use the Config.DesignerSettings.ApplicationConnection. And I don't unders…
-
You cannot use the existing connection directly. FastReport will use a copy of this connection. This is by design.
-
Hello, Try this: (report.Pages[0] as ReportPage).Visible = false; (report.Pages[1] as ReportPage).Visible = true; report.SetParameterValue(name, value); report.Prepare();
-
Hello, There is no easy way to access these cells. You should calculate the row/column index and access the cell directly via matrix[col,row].
-
FastReport actually does not use the connection object you provide. It creates an own copy of the connector which is compatible with your connection (for ex. own FR class OleDBDataConnection if you use OleDbConnection) and opens it when necessary.
-
Hello, You cannot pass nhibernate connection to Application connection, it is not supported because there is no connector for nhibernate. You may register instead the IEnumerable objects before calling the report designer: report.RegisterData(…
-
Hello, This code registers all tables in the dataset. What kind of error do you get?
-
Hello, You register the same table twice with different names. This is not allowed.
-
Hello, Looks like the bug in our code. OleDBConnection is replaced by connector to MS Access. Will be fixed in the next daily build.
-
Hello, The sample can be found in the class reference, the "Relation" class: ///
/// Represents a master-detail relation between two data sources. /// /// /// To setup a relation, you must specify parent and child d… -
Hello, You may add another report tab using the previewControl.AddTab method.
-
Hello, You probably use web garden or web farm?
-
Hello, Sorry, it's a bit unclear to me. Do you want to keep the focus on a previously displayed report when adding a new report tab?
-
Hello, remove this line of code: WebReport1.Report.Show(); it's for Windows.Forms only.
-
Hello, Could you send me a test project that demonstrates the error? I cannot reproduce it.
-
Could you send me a simple test project (with data) which demonstrates the error? I cannot reproduce it.
-
Hello, Have you checked this post? http://www.fast-report.com/en/forum/?p=/discussion/8832
-
Hello, I don't know what the LoadMyXML function does. I've tried to load/prepare multiple copies of the same report, it works well.
-
Hello, I have tried the same code, it works well. Probably something is wrong with the connection string. Note that you don't need to open the connection. FastReport actually uses the copy of the connection you provide.
-
Hello, You may use the application connection in the designer. To do this, set the Config.DesignerSettings.ApplicationConnection property to the instance of your connection object. In this case you will not be able to select another connection in…
-
Hello, Have you tried the latest version?
-
Hello, CS0103 error may be thrown if you use db column name which does not exists. For example, you trying to print [Table1.MyColumn], but Table1 does not contain such column.
-
Hello, Create the matrix.ModifyResult event handler and write the following code: Â Â Â Â private void Matrix1_ModifyResult(object sender, EventArgs e) Â Â Â Â { Â Â Â Â Â Â Matrix1.ResultTable.AfterCalcBounds += ResultTable_AfterCalcBounds; …
-
Hello, Sorry, I don't understand your question. Could you provide more details?
-
Hello, You forgot to enclose whole expression in the brackets: [[Report_printInvoices.SalePrice] / 1.2]
-
Hello, 1) The report designer can be used from Windows.Forms application only. 2) See the programmer's manual, "Working with Windows.Forms/Replacing the "Open" and "Save" dialogs". Also see the demo at Demos\C#\CustomOpenSaveDialogs which does e…