BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Ronnie,
Thanks for using Syncfusion Products.
You can modify the rdlc report contents using Syncfusion
ReportDesigner. Please find attached sample for your reference.
RDLC sample:
http://www.syncfusion.com/downloads/support/directtrac/general/PreviewRDCL1320517865425448622.zip
Customization samples:
http://www.syncfusion.com/uploads/user/directTrac/111476/Report
Designer-2127117473.zip
Please let us know if you have any questions.
Regards,
Anandakumar S
Hi Ronnie,
Thanks for your update.
You can change the report in code behind by modifying needed
properties of report items in the ReportDefinition. Please find the sample code
to modify ReportDefinition below.
Serializing Report
and modifying the ReportDefinition.
FileInfo info = new FileInfo("../../Sales Report.rdl"); FileStream
stream = new FileStream(info.FullName,
FileMode.Open,
FileAccess.Read, FileShare.Read); XElement rdl = XElement.Load(XmlReader.Create(stream)); string Namespace = (from attribute in rdl.Attributes() where
attribute.Name.LocalName == 'xmlns' select attribute.Value).FirstOrDefault(); string Version =
(Regex.IsMatch(Namespace, @'\d{4}') ? Regex.Match(Namespace, @'\d{4}').Value : string.Empty); XmlSerializer xs = new XmlSerializer(typeof(Syncfusion.RDL.DOM.ReportDefinition), Namespace); Syncfusion.RDL.DOM.ReportDefinition report; using (StringReader
reader = new StringReader(rdl.ToString())) { report = (Syncfusion.RDL.DOM.ReportDefinition)xs.Deserialize(reader); } //Similarly you can change the positions of
Header,Footer items of the report from the collection
report.Page.PageFooter.ReportItems and report.Page.PageHeader.ReportItems foreach (var reportItem in report.Body.ReportItems) { reportItem.Height = new Syncfusion.RDL.DOM.Size(25); reportItem.Width = new Syncfusion.RDL.DOM.Size(150); //Position of the reportitem reportItem.Left = new Syncfusion.RDL.DOM.Size(180); reportItem.Top = new Syncfusion.RDL.DOM.Size(180); } |
Please let us know if you have any questions.
Thanks,
Anandakumar S