Modify "Report Title" through SDK

Hi Dwayne,

Can you please let me how can I modify “Report Title” through SDK.


2732829 (BOB member since 2009-03-06)

I split this off from another topic, because it was unrelated.

The default “Report Title” heading is a constant (unnamed variable with text only, not a formula per se), so not possible to change it directly. The following should work though:

For Each DocVar In ThisDocument.DocumentVariables
    If DocVar.Name = "" And DocVar.Formula = "Report Title" Then
        DocVar.Formula = "New Report Title"
        Exit For
    End If
Next DocVar
Call ActiveReport.ForceCompute

Dwayne Hoffpauir :us: (BOB member since 2002-09-19)