Click here to Skip to main content
15,887,942 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am creating a microsoft report of rdlc type and design a list and i want that on runtime,I set report margins and add columns and space between columns on the basis of user's value in windows application.I tried a lot and i want to print 5*4 size labels.and 9 or 12 per page

Thanks in advance
Posted
Updated 16-May-11 3:00am
v2
Comments
Abhinav S 15-May-11 12:31pm    
Have you tried something so far? mentioning this will help others help you
Sandeep Mewara 15-May-11 13:04pm    
What report? Crystal, SSRS, other? A little more details on effort made please.

1 solution

What I have done in the past is add a parameter that is

@StartAtLabel

You need to make sure you validate that a user cannot tell it to start at a label higher than the total of labels per page.

Then you have a report that contains a list, 2 columns set on the report.

In the sql part you add a UNION ALL to a select statement that will select blank records (or "####") for each one of the labels you tell it to miss, and then if the textbox value == "####" then you dont show the values.
This will then have the label start at the position because the report will fill in the rest of the values with blanks, and will not print in those places.

The hard part is designing the report to work based on label size.
Its usually a lot easier to create a new report PER label size.

I suppose if you wanted to you could set the margins and columns via parameters as well.
 
Share this answer
 
Comments
geetajain 18-May-11 11:48am    
i don't understand what u eant to say please tell me it with details and coding
Rob Branaghan 19-May-11 5:46am    
Set the report properties to be 2 or 3 columns, how ever many you need.
geetajain 19-May-11 6:40am    
plz provide me example of that to get your point.......
thanks in advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900