Results 1 to 7 of 7

Thread: crystal reports

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    crystal reports

    I'm running a CR through my app. On the left hand side of the report is a list of the fields I GROUP BY, which is a credit card number. I need to either remove the listing or mask some of it...is this possible?

    thanks.
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    You can use formula to e.g. cut some chars and replace them with '*'. In your CR insert formula field and add something like this:
    Dim strCred as string
    strCred=CStr ({Table.cred_number}) 'credit number field
    strCred=Left (x,Len(strCred)-5) & "*****"

    regard j

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    am I close?

    VB Code:
    1. Dim strCred As String
    2.         strCred=CStr ({pcms_pcard_transaction_header.credit_card_no}) 'credit number field
    3.         strCred = Left(x, Len(strCred) - 5) & "*****"
    4.         rpt.DataDefinition.RecordSelectionFormula.Insert(strCred)
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  4. #4
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    You can add formula field in crystal report designer (fields explorer - formula fields) and then add code for that field.

    regard j

  5. #5

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    sorry, didn't explain my problem to well. I was able to mask the credit card number in the report. What I need to do is hide the grouptree or mask the card number in there. Is this possible?
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  6. #6

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    I solved the this problem by masking the card numbers in the group tree. I did this by right clicking on the group, selecting change group, options, then selecting "use formula as group name". I then wrote a formula to mask the first 12 didgits.

    thanks for your help
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  7. #7
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: crystal reports

    on the upper right or top side there is the trr button if u can see then click that button and see if that tree is removed

    then just see the properties of contral and turn it off
    ( i mean the option in contrrol)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width