how i can change prepared report.
i am save my prepared report on database. but sometimes i need to change texts in report.
my code like this.
ms = new MemoryStream(varArray);
Rapor.LoadPrepared(ms);
FastReport.Preview.PreparedPages pages = Rapor.PreparedPages;
ReportPage P = pages.GetPage(pages.Count - 1);
FastReport.TextObject Tqq = (TextObject)P.FindObject("TextEimza");
if (Tqq != null)
{
Tqq.Visible = false;
Tqq.Text = "bla bla bla.";
}
PDFExport export = new PDFExport();
export.OpenAfterExport = false;
export.AllowCopy = false;
export.AllowModify = false;
export.AllowAnnotate = false;
export.PdfA = true;
MemoryStream ge = new MemoryStream();
Rapor.Export(export, ge);
i found object TextEimza and change Text properties and save to database again or export. but text is not changed. how i can fix this.
my code like this.
ms = new MemoryStream(varArray);
Rapor.LoadPrepared(ms);
FastReport.Preview.PreparedPages pages = Rapor.PreparedPages;
ReportPage P = pages.GetPage(pages.Count - 1);
FastReport.TextObject Tqq = (TextObject)P.FindObject("TextEimza");
if (Tqq != null)
{
Tqq.Visible = false;
Tqq.Text = "bla bla bla.";
}
PDFExport export = new PDFExport();
export.OpenAfterExport = false;
export.AllowCopy = false;
export.AllowModify = false;
export.AllowAnnotate = false;
export.PdfA = true;
MemoryStream ge = new MemoryStream();
Rapor.Export(export, ge);
i found object TextEimza and change Text properties and save to database again or export. but text is not changed. how i can fix this.
Comments
Thank you for answer.
yes. i see your answer link. and I used the sample you sent.
but you change xml. Maybe there is another way I thought