c# - Set subreport text object in Crystal Reports -


I wanted to set the subreport headers text through the resource file. I have tried this code below

  report document rDocument = (report document) session ["report source"]; (TextObject) rDocument.Subreports ["HollidayShub Report"]. ReportDefinion.ReportsObjects ["Hollidaystriulle"]). Text = resource Resources. HoliseDual;   

But here I am getting the error because is not set for example object reference object

How do I solve this issue I can. Appreciate any help.

  text object txtpentotal = (TextObject) objRpt.Subreports ["Subreport.rpt"]. ReportDefinition .Sections ["Section4"] ReportObjects ["txttotal"]. Txtpentotal.Text = Pen. Text;    

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - Check if a NumericUpDown has no value -