Hi all,
I am trying to add a PictureObject to an existing report's Report Header Section through VBScript code in my ASP page. I am able to get reference to the RH section and get its various properties but unable to add a new object to the report. Here is a bit of code I tried for adding a simple TextObject.
Both the "Reponse.write" give the same count. Can anybody point out the mistake. Using Crystal Reports 9.
Thanks in advance.
panksy
I am trying to add a PictureObject to an existing report's Report Header Section through VBScript code in my ASP page. I am able to get reference to the RH section and get its various properties but unable to add a new object to the report. Here is a bit of code I tried for adding a simple TextObject.
Code:
Set rhSection = session("oRpt").Sections.Item(1)
Response.write(rhSection.ReportObjects.Count)
Set rhTextObject = rhSection.AddTextObject ("My Custom Header",1440, 1440)
Response.write(rhSection.ReportObjects.Count)
Both the "Reponse.write" give the same count. Can anybody point out the mistake. Using Crystal Reports 9.
Thanks in advance.
panksy