For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > June 2005 > Adding field through VB in Crystal Report 10 at runtime ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Adding field through VB in Crystal Report 10 at runtime ?
Luqman

2005-06-10, 8:58 pm

I have added a blank text object in crystal report 10, how can I add a field
object in this text object through Visual Basic 6.0. I can add text with the
following :-

Dim crfld As CRAXDRT.FieldObject
Set crSection = crRpt.Sections.Item("D")

crFieldObject.SetText "my Text"
crRpt.FormulaFields.GetItemByName("test").Text = "'formula'"

With CRViewer1
..ReportSource = crRpt
..ViewReport
End With

But I don't know how to concatenate a text and field object through Visual
Basic, any idea please ?

Best Regards,

Luqman


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com