Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a section

Status
Not open for further replies.

VB400

Programmer
Sep 8, 1999
359
US

When I double click on a section, it takes me to VB code as follows:

Private Sub Section3_Format(ByVal pFormattingInfo As Object)

End Sub

It made sense to me that I can format data here before it prints. For example, I thought I'd be able to format a phone number before printing or other complex formatting. I can't figure out how to do it.

Formula fields can be a bit difficult to deal with when the data is not consistent. For example, formatting a Date field that has been stored as a numeric field in the database (6 digits yymmdd) or formatting a social security number field if it is present in the record, etc.

I know in Access, you can format data before a section is printed. Can we do this in CR6?

Any help or guidance is appreciated.

Thanks! Tarek
 
The options that you are describing are not 'formatting' in Crystal terms. To see the formatting options for a field, right click on the field object and select Format - Field. The two examples you describe would need to be done in using a formula. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 

Thanks Ken -- I was hoping that I can do my formatting in VB code as it is much easier than with CR. Tarek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top