Label Address Printing in Crystal Reports for Visual Studio.NET


I need to print Mailing Address Labels using Crystal Reports in VS.NET.
I use C# as my coding language.
I use the Mail Label expert wizard to do that in design time.

My requirement is that I need to be able to change the Width and
Height of the Label (which is actually the Detail section) during
Run-Time. The user will enter the Label dimensions in a separate
screen. The parameters would be like

Label height
Label Width
Number of Labels to print in a row (across the page)
Number of blank lines between two label rows

I am able to control all of them using the Layout tab in Format Sections dialog.

I need to fetch this information at run-time and apply on the CR
object programmatically. I tried accessing the SectionFormat object
but it provides all the boolean properties except "Format Multiple
Columns", which makes the Layout tab visible at design time.

Please let me know if this can be done using the Object Model of CR.

Thanks In Advance

Karthik N
Who is Participating?
mlmccConnect With a Mentor Commented:
I believe it can however it probably requires you to use the Royalty Required dlls and will cost $199 (last time i checked) per user to distribute the dlls.

I suspect it will be easier and cheaper to develop several reports with the popular label sizes predefined and allow the user to select from them

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.