Default Avatar

ipong

ipong

About

Username
ipong
Joined
Visits
482
Last Active
Roles
Members

Comments

  • looks good in 2017.2 version
  • try to construct parameterized query from report script     private void _StartReport(object sender, EventArgs e)     {       string parameter = Report.GetParameterValue("MyParameter").ToString();       TableDataSource tds = Re…
  • write your filename in fastreport tags, look at designer, menu report=>options=>description, then access it via code
  • 1. create group header #1 and the data column is [OrderNo] 2. set group header #1 to 'start new page' and height = 0 3. create group header #2 (below #1) and the data column is [Type] 4. set group header #2 to 'start new page' and height = 0 5. …
  • if your TextBox1..TextBox3 contain integer/double/decimal datatype, no need to convert, use this expression Datasource.Field1] + [Datasource.Field2] + [Datasource.Field3 note: always enclose with brackets
  • image.SeparateFiles = false => all pages exported into one image file, try it...
  • sending email is a long running process and you dont want to block the UI, use background thread. using System.Threading.Tasks; using System.Net; using System.Net.Mail; TaskScheduler ts = TaskScheduler.FromCurrentSynchronizationContext(); Task.Ru…
  • suppose you want to click Text1 (textobject) and your Main Application is MainApp.exe with namespace = MainApp. 1. Create a new static class in MainApp using System; namespace MainApp {     public class FRCustomFunction     {      …
  • no pics attached???
  • using (FastReport.Report report = new FastReport.Report()) {     report.Load("report.frx");     report.RegisterData(datatable, datatable.TableName);     report.Prepare();     using (FastReport.Export.Image.ImageExport image = new Fas…
  • Font font = txt1.Font; txt1.Font = new Font(font.FontFamily, font.Size + 30, FontStyle.Bold); note: 1 pixel = 0.75 point https://www.translatorscafe.com/unit-conver...typography/9-8/
  • try with script private decimal runtotal; private void Data1_BeforePrint(object sender, EventArgs e) { runtotal+= (Decimal)Report.GetColumnValue("DataSource.YourField"); } and do runtotal for another field... you may use [runtotal] to d…
  • lineobject in webreport has been fixed in version 2017.2.14
  • FastReport.Utils.Config.ReportSettings.ReportPrinted += new EventHandler(this.AfterPrint); private void AfterPrint(object sender, EventArgs e) { Console.Beep(); }
  • notice that you must set PrintIfDatasourceEmpty="true" in Data4
  • another approach, a more elegant way of parsing xml data. using System.Xml; using System.IO; using System.Xml.Serialization; private void XMLReport() {     // open XML file     XmlDocument doc = new XmlDocument();     doc.Load(@"d:\Es…
  • oops, looks like you have a node with no children, something like this: yes that node name ends with 's' this part will give you that kind of error => if (item1.Name.EndsWith("s")) here is the fix : foreach (XmlNode item1 in item0.ChildN…
  • try with data normalization, there are four tables: (1)rooms (2)Offsets (3)Openings (4)Items then use linq to query those tables. using System.Collections.Generic; using System.Linq; using System.Xml; using System.Xml.Linq; using System.IO; priv…
  • set 'duplicates=hide' in textobject, and if you are not satisfied with the borderline, use script.
    in Design Comment by ipong March 2017
  • maybe unicode font problem, what font are you using? try GNU Unifont https://en.wikipedia.org/wiki/GNU_Unifont https://en.wikipedia.org/wiki/Unicode_font
  • xml file 1 1 1 2 2 2     200     200     200     200
    business object private class dbData {     public string width { get; set; }     public string length { get; set; }     public string heigh…
  • if datatype for field "RouteDate" is already DateTime, no need to convert or cast again. To format, right click on textobject and select format, there is predefined function you may use, such as dd MMM YYYY, try it...
  • http://www.fast-report.com/en/forum/?p=/discussion/13918
  • desktop or web application?
  • wrote: This is my first multi-page report. I have the cover page put together and that seems to be working well. All of the data seems to be populating properly. I added a second page that should be the content pages and I designed that, but …
  • yes, we can only depend on our community, helping each others.
  • read xml file, parse it, then push to fastreport. report is based on query (multiple tables with relationship) or a single table. you may use LinQ to XML , www.tutorialspoint.com/linq/ download tutorial in pdf format : https://www.google.co.id…
  • report.registerdata is case sensitive, referring to https://msdn.microsoft.com/en-us/library/ekw4dh3f.aspx give me the same error if i use a code like this: using (DataSet ds = new DataSet())             {              …
  • FastReport.Report report = new FastReport.Report(); FastReport.ReportPage reportPage = report.Pages[0] as FastReport.ReportPage; reportPage.UnlimitedHeight = true;