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
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.
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...
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.