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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -