cancel
Showing results for 
Search instead for 
Did you mean: 

Set Font object on Text or Field objects at runtime

Former Member
0 Kudos

This was possible with Crystal 9 runtime object model - is there an equivalent API with Crystal 2008 Repordt Document or Definition - the FieldObject and TextObject Font property is read-only??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Grant,

We need to use Report Application Server SDK.

Have a look to [Dev library|https://boc.sdn.sap.com/node/10619]

To modify reports at runtime, see the following:

[Note|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303331333033393337%7D.do]

To download sample code click [here|https://boc.sdn.sap.com/codesamples]

Hope that helps!!

Regards,

Shweta

Former Member
0 Kudos

Thanks, I have tried the RAS in-process model but don't seem to see any changes persisted to the actual report when previewed or printed, I've also now tried to implement a version of this code pre-release rather than at runtime - to make bulk changes to the report documents programmatically before release - but again the SaveAs function does not actually save the report file at all - will this call only work if you are attached to a report server session?

Former Member
0 Kudos

HelloGrant,

please download a CS sample for VS 2005 [How to add a Textfield|ftp://ftp.businessobjects.com/pub/incoming/NET-CS2005_RAS-Unmanaged_CR115_Add_Textfield.zip].

This sample demonstrates how to add a textfield including font and size using unmanaged inproc RAS.

I hope it answers all your questions.

Best regards

Falk

Former Member
0 Kudos

Thanks - I played with the object model a little more and got it sussed - I was using the Add moethof on the FormulaField collection - but have modified this to use the FormulaFieldController.Add and .Modify methods and it seems to work OK - this API just takes a bit of getting used to. Thanks for all assistance thus far.

Answers (0)