VB.net Crystal Formula field alignment

I am creating a Formula field that converts a decimal to a text string and adds a Pct sign.
totext(Sum({GMFTempWeeklyProd1.Mon})/{?TtlPounds}* 100)+ '%'
By default this is left aligned. I can't find a place in the Crystal interface to right align this field. I have searched for a way to do it in code but have not been successful.
I think I am looking for something like:

Dim crObject as ??????? This has to refer to the Report I have already loaded

For each crObject in crObject.ReportDefinition.ReportObjects
   If crObject.name = "FormulaFieldName" then
      crObject.ObjectFormat.HorizontalAlignment = Alignment.RightAlign
    end if
next

Any suggestions?
thanks,
pat
mpdillonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Are you creating the field in code?

I believe you just need to use Object

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mpdillonAuthor Commented:
mlmcc,
The field is created in the designer and not in code.

In code I am trying to identity the field and change its horizontal alignment.

I made the following changes based on your suggestion

 'I am not exactly sure of this statement. I can't check as computer is off
dim cryRpt as crystal.ReportDocumant


Dim crObject as  OBJECT

For each crObject in cryRpt.ReportDefinition.ReportObjects
0
mpdillonAuthor Commented:
Worked great
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.