Results 1 to 4 of 4

Thread: crystal report font change at run time

  1. #1

    Thread Starter
    Hyperactive Member kuldevbhasin's Avatar
    Join Date
    Mar 2008
    Location
    Mumbai, India
    Posts
    493

    crystal report font change at run time

    hi guys....i am using vb.net 2003 and crystal reports.....and am very new to both the things...

    i would like to know that is there any way that we can change the fonts of the crystal reports as per the choice ofthe unser.

    i have developed a prog. in a regional language ...and have even given the user the option to select the font he / she likes...its working fine with vb.net 2003 but how do i make the effect in crystal....

    can some pls. pls. help me out...
    thankx a lot in advance

  2. #2
    Hyperactive Member
    Join Date
    Jul 2007
    Posts
    479

    Re: crystal report font change at run time

    You can use the conditional formatting using the X+2 buttons and parameters to pass the correct information in at runtime using an If statement. My suggestion would be to also set a default.

  3. #3

    Thread Starter
    Hyperactive Member kuldevbhasin's Avatar
    Join Date
    Mar 2008
    Location
    Mumbai, India
    Posts
    493

    Re: crystal report font change at run time

    Quote Originally Posted by rasinc
    You can use the conditional formatting using the X+2 buttons and parameters to pass the correct information in at runtime using an If statement. My suggestion would be to also set a default.
    thankx for ur reply ...but whats X+2 buttons...and i know how to pass a parameter...which i use for report headings and company names...but how do i use the parameter for fonts....can u pls. guide me more pls...
    thankx a lot...

  4. #4
    Hyperactive Member
    Join Date
    Jul 2007
    Posts
    479

    Re: crystal report font change at run time

    In the Crystal designer, right-click a field object, select Font. Then the button to the right of the font, X+2, click on it (it's the blue one in my Crystal). Then enter a formula like

    Code:
    If {?NewFont} <> "" then
        {?NewFont}
    else
        DefaultAttribute
    This assumes the parameter {?NewFont} contains the actual name of the new font.

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