Default Avatar

ipong

ipong

About

Username
ipong
Joined
Visits
482
Last Active
Roles
Members

Comments

  • how do you push data from database to fastreport?
  • don't use two databands and subreport, push one datatable to fastreport, use LinQ : //FROM DATABASE#1 DataTable dt1 = new DataTable(); dt1.Columns.Add("id", typeof(Int32)); dt1.Columns.Add("name", typeof(string)); dt1.Rows.Add(1, "alpha"); dt1.Row…
  • place a textobject in front of the shape, url is setted on textobject
  • For experimental purpose 1. asp.net code : FastReport.Web.WebReport wr = new FastReport.Web.WebReport(); wr.SinglePage = true; 2. html page :     function btnPrint () {         var content = document.getElementById("frbody"); Â…
  • yes, preview window still appears, but automatically print. create a shortcut with target location : "C:\Program Files\Google\Chrome\Application\chrome.exe" --kiosk-printing --allow-running-insecure-content --disable-scripted-print-throttling --…
  • web browser can do that, install add-ons 'Seamless Print' or google with keyword "kiosk printing"
  • try to debug in firefox, i believe there is an error in XHR request
  • sort at runtime   public class ReportScript   {     private bool toggle = false;          private void Text4_Click(object sender, EventArgs e)     {       toggle = !toggle;       Sort abc = Data1.Sort[0];       …
  • yes, because it is drilldown report, when you click an object in group header, it will expand/collapse data1 or footer. thanks for your info, now I can create an interactive report, for example : sort column at runtime, when you click an object i…
  • drilldown report doesnt need hyperlink, do not mixed up with javascript click action sample. 1. original frx file, rptCOA.frx 2. picture drilldown report, before click 3. picture drilldown report, after click 4. converted frx file to class (i …
  • finally got it to work, click event in webreport as a class using System; using FastReport; namespace FastReport {   public class frOnMyOwn: Report   {         public FastReport.Report Report;         public FastReport.Engine.…
  • and for lineobject, i debug in firefox, actually the line is rendering as a picture, but.... sadly, css ruins it with height:0px; , that's why not showing in web browser..... waiting for the next service release...
  • but.....it doesnt work when use it as a class, only works with frx file. FastReport.Web.WebReport wr = new FastReport.Web.WebReport(); wr.Report = new frBS(); wr.Report.RegisterData(dt, dt.TableName); ......... don't know why....
  • it's working, your dream comes true namespace FastReport {   public class ReportScript   {     private List expandedGroups = new List();           private void Text1_Click(object sender, EventArgs e)     {       string gr…
  • install fastreport on your web server, that's why on development computer, you don't need to set webmode = true
  • you need fastreport.config on web server
  • please google with keyword "web.config registry access". and i found : I do not think giving a web site access to the registry is a good idea because of the possible security implications. and this link, http://forums.codecharge.com/posts.php…
  • have you set "FastReport.Utils.Config.WebMode = true" in global.asax => application_start()
  • font is defined by css in a page, for example, i'm using Tempus Sans ITC for web report, fast report will create a css with font-family: Tempus Sans ITC; you must install Tempus Sans ITC on your operating system or provide font to user with css :…
  • turn off 'export' option in previewcontrol, create your own button to export as pdf                 using (FastReport.Report pdfReport = new FastReport.Report())                 {                  …
  • use version greater than or equal to 2016.3
  • see attachment, are you using "total wizard" ? in 'data column or expression', what datatype for the column?
  • i changed my own code, from datatable to businessobject, but the answer is still same, it works!!! //iList as datasource         public class myDataSource         {             public int CompanyID { get; set; }    …
  • based on your code, InternalDataSourceName = "MyDataSourceName" why you set [MyDataSource.CountryName] in javascript, instead of [MyDataSourceName.CountryName]
  • sorry, i never use fastreport from code, but.....i tried this and success :                                 using (FastReport.Web.WebReport wr = new FastReport.Web.WebReport())                     …
  • 1. that's how fastreport translates your expression into code. when you open your frx file in designer and save as 'class', the code :      protected override object CalcExpression(string expression, Variant Value)     {       if (exp…
  • there is a demo for MVC, take a look at it. Entity framework actually is a business object. List bo = ...dbContext.ToList(); webreport.RegisterData(bo , "MainReport");
  • try to use common font and use latest version of fastreport.