Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CrystalReports
i have done crystal report for print id card now i can print 10 id card in one page but he page are taking 1st line diffrent people detail n 2nd line taking the same detail i want to print 10 diffrent detail
 
---- More information from comments: ----
 
sir i am developing a i-card print software in VS 2008(Window form,C#) and Sql Server 2005.I have use crystal report XI that is build-in VS 2008. I want to print i card for multiple students i.e: i want to print front side of one student on extreme upper-left corner of A-4 size paper and print the front side of another student on the extreme upper-right corner of the same A-4 size paper.
 
Secondly, want to print back side details of i-card on the second page i.e:back side of 1st student details on extreme upper-right corner and 2nd student details on the upper-left corner ..
means when i print this two papers and join on both side it should match the detail of 1st student(front and back) and same for multiple students...
and I want 8-10 student details to be printed on one page (side by side)
 
Please help me
Posted 19-Jul-13 3:31am
Edited 19-Jul-13 6:11am
Kschuler32.2K
v3
Comments
Kschuler at 19-Jul-13 10:42am
   
Without more information, I'm not sure anyone can help you. Can you describe more about how you set up your report? Were you using more than one Detail section? What are your tables like and how have you linked them?
provi 777 at 19-Jul-13 12:03pm
   
sir i am developing a i-card print software in VS 2008(Window form,C#) and Sql Server 2005.I have use crystal report XI that is build-in VS 2008. I want to print i card for multiple students i.e: i want to print front side of one student on extreme upper-left corner of A-4 size paper and print the front side of another student on the extreme upper-right corner of the same A-4 size paper.
 
Secondly, want to print back side details of i-card on the second page i.e:back side of 1st student details on extreme upper-right corner and 2nd student details on the upper-left corner ..
means when i print this two papers and join on both side it should match the detail of 1st student(front and back) and same for multiple students...
AND I WANT 8-10 STUDENT DETAILS SHOULD BE PRINTED ON ONE PAGE (SIDE BY SIDE)
PLEASE HELP ME ....
Kschuler at 19-Jul-13 12:12pm
   
Are you building a program to do this? If so, a PC program or web? And what language? Or are you just using crystal reports stand alone?
provi 777 at 19-Jul-13 15:38pm
   
its a window application devlop in c#
ridoy at 19-Jul-13 10:46am
   
not clear.
provi 777 at 19-Jul-13 11:49am
   
sir i am developing a i-card print software in VS 2008(Window form,C#) and Sql Server 2005.I have use crystal report XI that is build-in VS 2008. I want to print i card for multiple students i.e: i want to print front side of one student on extreme upper-left corner of A-4 size paper and print the front side of another student on the extreme upper-right corner of the same A-4 size paper.
 
Secondly, want to print back side details of i-card on the second page i.e:back side of 1st student details on extreme upper-right corner and 2nd student details on the upper-left corner ..
means when i print this two papers and join on both side it should match the detail of 1st student(front and back) and same for multiple students...
AND I WANT 8-10 STUDENT DETAILS SHOULD BE PRINTED ON ONE PAGE (SIDE BY SIDE)
PLEASE HELP ME ....
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I'm not sure if this is the best way.... But if I were doing this....I think I'd do all of the logic in the C# program. Mostly because I hate trying to find the code inside a crystal report and it's harder to maintain or compare changes than in the regular code. And because I don't know how you would do it IN the report.
 
In the Crystal Report, I'd design it to have two detail sections. One that prints Side A of a student's card and one that prints Side B. Each detail section would suppress based on a code field in my datasource. Each detail section would have 2 cards on it.
 
My data source table would have a column to track which detail section should show, and then two columns for each bit of information that is printed on the front of the card and two columns for each bit of information that is printed on the back.
 
In the code I would create an empty table that matches the expected crystal report schema, lets call it dtFormat. I would pull data from my database in a second table, lets call it dtStudentInfo. I'd loop through dtStudentInfo and for each 2 students I would create a new row in dtFormat and fill in the side 1 information columns. So the first row of dtFormat would have something like this:
SideA, Student1, StudentId1, StudentPhoto1, Student2, StudentId2, StudentPhoto2
 
After that, I'd loop through dtStudents again. For every two rows I would create a new row in dtFormat and fill in the side 2 information columns...making sure to enter it somewhat backwards....so that the students are flip flopped and will match if you print it on the back
SideB, Student2, StudentId2, StudentPhoto2, Student1, StudentId1, StudentPhoto1
 
Then pass dtFormat to the crystal report.
 
So, yeah. It's kind of a lot of work, so I'm not sure if it's the easiest possible way. But it's one method you could try.
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 19 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid