Learn how to a build a cloud-first strategyRegister Now


Can Grow Field and Font Size Problem

Posted on 2002-03-19
Medium Priority
Last Modified: 2013-12-03
I have a VB6 App in which I am using Designers to Produce Reports. In the Detail Section of one of the reports I am setting the Font name and Font Size of a number of Fields
dynamically. The majority of these fields are then being shown correctly (i.e) with the correct font.

My problem however is that I have one Field which has the 'Can Grow' property set to true and this field ignores any changes to the Size of the Font. Unfortunately this field has to be able to grow otherwise the report will not work.

Can anybody provide me with a work around for this problem please ?
Question by:SimonWillis
  • 3
  • 3
LVL 101

Expert Comment

ID: 6879804
What code are you using to produce/print the report?


Author Comment

ID: 6879969
I am using Crystal Reports V8, however the last article that you included sounds very much like the problem I am getting.

In the detail section of the report I reference the fields font property directly. ie.


this really is the crux of the problem. when I change the can grow option to false then the font size does change, otherwise nothing happens.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 6880024
I'm not sure if this is the case with Crystal Reports, though I've used the Excel Automation objects with VB to format cells, and found that sometimes the order of the commands makes a difference.  You might try the Font Size change before and after the other command.

Good Luck.
LVL 101

Accepted Solution

mlmcc earned 400 total points
ID: 6881230
I was looking for another topic and came across this article from CR.


good luck

Author Comment

ID: 6882154
Thanks for the info, I have used the runtime library a couple of times for proof of concept but I didn't really want to go down tha route due to the licensing restrictions.

I tried stripping everything out of the except the font statements and I still get the problem i.e.

Private Sub Section3_Format(ByVal pFormattingInfo As Object)
' Detail Section
fldName.Font.Size = 14

End Sub

but the problem still occurrs when cangrow is set.

It may be that this is a known bug in Crystal reports 8 as well as CR.NET. If so then I may have to chat with crystal decisions about some kind of workaround.

Author Comment

ID: 6893473
Thanks, I have about as much info as I could get now. Cheers !

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question