Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2005, 06:08 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Label generation

Hi
This is the second time i am posting the same topic because i didnt get the reply last time.
I have an application where i have to retrieve the user details and display in the form of labels as address.I have to retrieve 3-4 fields from the database and have to display the address in the form of label. There are 6000 to 8000 records in the database,so I have to display no. of records pagewise to take the print out of the labels.

Can anyone help this time.

Thanks and regards
Lily

 
Old May 16th, 2005, 06:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And what exactly are you having problems with? Choosing the right data repeating control, or setting up paging?

It would really help if you provide more details; explain your requirements, explain what you have already investigated, what works and what doesn't etc. That way, other people don't have to do all the hard work by trying to figure out what you possible mean.

Anyway, what you probably want is an asp:DataList in combination with Paging. Search Google for DataList Paging and you'll find a lot of useful information.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Tire Me by Rage Against The Machine (Track 6 from the album: Evil Empire) What's This?
 
Old May 17th, 2005, 12:07 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
I may be wrong in explaining that u didnt get my requirement.
Actually i have to retrieve from database and display in the forum of labels,for example:
Name Name Name
Address Address Address
Pin Code Pin Code Address


In this form I have to display and I have to give the option for taking printout of these addresses. Code can be in ASP or C#.
I have to generate the label and I can take the print out of these records pagewise.


 
Old May 17th, 2005, 03:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Aha, I see.

I don't have any experience with printing labels from ASP.NET, and personally, I don't think it's the right tool for the job.

You'll run into a lot of browser peculiarities, like a header and footer text, unwanted page breaks, etc.

Do you have to use ASP.NET for this?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 18th, 2005, 05:36 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want to print labels you have two options:

1. use Crystal that comes with Visual Studo
2. dump data to pdf

I have used crystal for this requirement.


 
Old May 20th, 2005, 08:11 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I can use ASP.Net or ASP for generating labels.
How to do using Crystal Report??


 
Old May 26th, 2005, 12:39 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's how you would use crystal with your web app:

Creating Reports using Crystal Reports for Visual Studio .NET

http://www.dotnetjunkies.com/Article...A588D33D3.dcik

Let us know how it goes.

BTW, I didn't receive a notice that you replied to this post. I happened to check on it today. Strange.
 
Old May 31st, 2005, 01:51 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi lily611
What I make out is that ur main problem is genration of lables at run time..
So Instead of genrating lables why dont you create a html table at the run time with number of rows according to rows in your datatable..
But Still u have to solve the printing problem..
For that i can suggest u to open a seprate browser win and display the table there and get the print from there....
Hope it helps


 
Old June 6th, 2005, 03:19 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Darsin

I hope this will work, bcoz I m also trying with the same.

Thanks and Regards
Lily






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic PDF Generation sandyg Classic ASP Components 12 June 15th, 2008 03:51 AM
automatic page generation rahulcbr Beginning PHP 1 October 25th, 2006 06:16 PM
Report Generation kotaiah Excel VBA 0 September 14th, 2006 08:26 AM
Report Generation Problem lushh Access VBA 2 September 5th, 2006 07:16 AM
Report Generation in JAVA Bhushan XML 0 May 18th, 2005 05:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.