Hi,
I can edit only the template and I want to add a day from a date.
Example :
<<var [tempDate = etatPluie.First().Time.Date]>>
give : 05/02/2025 00:00:00
I want to add a day in order to get : 06/02/2025 00:00:00
Thanks for your suggestions
Hi,
I can edit only the template and I want to add a day from a date.
Example :
<<var [tempDate = etatPluie.First().Time.Date]>>
give : 05/02/2025 00:00:00
I want to add a day in order to get : 06/02/2025 00:00:00
Thanks for your suggestions
@deid You can use DateTime.AddDays
method. For example see the following code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("<<var [tempDate = myDate.AddDays(1)]>>");
builder.Writeln("<<[tempDate]>>");
ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, DateTime.Now, "myDate");
doc.Save(@"C:\Temp\out.docx");
Thank you Alexey