Hi all
I have Branch name, employee name and some of the fields in my database. I have to create attendance report using crystal.
The problem is in my report I want to display employee names order by their branch name. for e.g.
in my crystal report i want to display data in this way
Brooklyn Branch name
Mr. kevin
Miss zuilaana
Mr. craig
Canberra Branch name
Mr. don
Mrs. kim
I tried to use two separate commands but it didn't work.
Please Let me know as soon as possible that how could I solve this?????????
Thanks you all for trying to solve this in advance
3 1058
Hi all
again it is the same question regarding the crystal report query
Actually I need to display each Branch on new page in crystal report.
I want the employee name order by branch name and the department name is well for e.g.
Branch1: page1
Department1
Employees
Department2
Employees
.
.
Branch2: Page2
Department1
Employees
Department2
Employees
.
.
Thank You all in advance to solve it.
Hi viral123,
I tried to display every branch and employer name in new page order by branch name
Use this coding in page_load
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
Dim rpt As New CrystalReport2
Dim mydatareader As SqlDataReader
Dim myConnection As SqlConnection = New SqlConnection(" Server=Gopi;ini tial catalog=Northwi nd;User Id=sa;Password= ;")
Dim MyCommand As SqlCommand = New SqlCommand("sel ect brname, empname from BRANCH order by brname", myConnection)
Dim myDA As New SqlDataAdapter
Dim myDS As New Dataset4
myDA.SelectComm and = MyCommand
myConnection.Op en()
myDA.Fill(myDS, "BRANCH")
myConnection.Cl ose()
rpt.SetDataSour ce(myDS)
CrystalReportVi ewer1.ReportSou rce = rpt
Dim s As System.IO.Memor yStream = CType(rpt.Expor tToStream(Cryst alDecisions.Sha red.ExportForma tType.PortableD ocFormat), System.IO.Memor yStream)
Response.Clear( )
Response.Buffer = True
Response.Conten tType = "applicatio n/pdf"
Response.Binary Write(s.ToArray ())
Response.End()
s.Close()
s = Nothing
End Sub
and
In crystal report
click --> Detailed Section --> Format Section --> Check New page After
then u will get branch name and details with each page
Wish you success
Hi viral123,
Do the following stepts, u will get your result
1. first place the fields in crystal report
2. clikc the field (in right click) in crystal report and choose format options
3. In format option, choose column tab.
4. In column table chek the option suppress if duplicates
5. click <ok>
u will get like this
branch name1
employeename
employeename
employeename
branchname2
employeename
employeename
employeename
wish u success
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Stephan |
last post by:
Hi,
I'm using Visual Studio 2003 (C#) with the integrated
Crystal Report software and have the following question:
How can I assign a value (string) to an unbound (string)
field in Crystal Report at runtime?
Example:
private void button1_Click(object sender,
|
by: kristoff plasun |
last post by:
I have a problem with a C++ DCOM application that
prints Crystal Reports with data from Oracle.
The SQL query is relatively complex but when
the report is printed from the Crystal Reports
designer it shows up very fast. When the report
is printed from my application it takes about
ten times as long to get the report to appear.
When printing straight from the Crystal Reports
|
by: bthomas71chevy |
last post by:
I have just setup a WebServer and all the applications work fine, but
when every any of the applications try to generate a Crystal Report the
page errors out.
"File or assembly name CrystalKeyCodeLib, or one of its dependencies,
was not found."
I read that the 4 MSM files need to be moved to the a MERGE MODULES
folder in the Common Files folder, but didn't seem to do a thing.
|
by: Stephan |
last post by:
Hi,
I'm using Visual Studio 2003 (C#) with the integrated
Crystal Report software and have the following question:
How can I assign a value (string) to an unbound (string)
field in Crystal Report at runtime?
Example:
private void button1_Click(object sender,
|
by: =?Utf-8?B?cmtibmFpcg==?= |
last post by:
How can I stop receiving this message while calling a crystal report?
"The report you requested requires further information."
Thanks
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |