Hey Again Group,
Sorry to be a pain but ..........
I have a Windows Forms Project with serveral reports in now.
At the moment I have 7 Forms all Called Print1, Print2, Print3 and so on.
Each form has a Crystal Report Viewer on it assigned to the perticular
report eg, Print1.rpt, Print2.rpt, and so on.
Is there a better way to do this by code, im looking at about 50 or so
reports and i think its going to get very messy if i have 50 forms all with
a crystal report viewer on.
Im thinking on the lines I have one for then in the Display Report Button
code I tell it to load Formx, and use the crystal report viewer with
reportx.rpt? Is this correct?
Any Ideas or Code?
Many Thanks
MCN 4 1229
Hi Mad
I use a single form to display reports. I use a simple
select case for each report on form load event.
Kind Regards
Jorge -----Original Message----- Hey Again Group,
Sorry to be a pain but ..........
I have a Windows Forms Project with serveral reports in
now. At the moment I have 7 Forms all Called Print1, Print2,
Print3 and so on.Each form has a Crystal Report Viewer on it assigned to
the perticularreport eg, Print1.rpt, Print2.rpt, and so on.
Is there a better way to do this by code, im looking at
about 50 or soreports and i think its going to get very messy if i
have 50 forms all witha crystal report viewer on.
Im thinking on the lines I have one for then in the
Display Report Buttoncode I tell it to load Formx, and use the crystal report
viewer withreportx.rpt? Is this correct?
Any Ideas or Code?
Many Thanks MCN
.
Just create One viewer and call it using the various reportrs and whatever
options you want. One viewer can do it all for you and all the good stuff
is publicly exposed.
HTH,
Bill www.devbuzz.com www.knowdotnet.com
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:os********************@karoo.co.uk... Hey Again Group,
Sorry to be a pain but ..........
I have a Windows Forms Project with serveral reports in now.
At the moment I have 7 Forms all Called Print1, Print2, Print3 and so on. Each form has a Crystal Report Viewer on it assigned to the perticular report eg, Print1.rpt, Print2.rpt, and so on.
Is there a better way to do this by code, im looking at about 50 or so reports and i think its going to get very messy if i have 50 forms all
with a crystal report viewer on.
Im thinking on the lines I have one for then in the Display Report Button code I tell it to load Formx, and use the crystal report viewer with reportx.rpt? Is this correct?
Any Ideas or Code?
Many Thanks MCN
Thanks for your reply, So far for my button I have
Private Sub btnFaxsPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnFaxsPrint.Click
Dim LoadReportPrint As frmReportPrint
LoadReportPrint = New frmReportPrint()
LoadReportPrint.ShowDialog()
Me.CrystalReportViewer1.ReportSource = Faxs.rpt
End Sub
Only thing is it errors on the Me.CrystalReportViewer1 Line as
CrystalReportViewer1 is in a different form:(
Could somebody Kindly help?
Many Thanks
MCN
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl... Just create One viewer and call it using the various reportrs and
whatever options you want. One viewer can do it all for you and all the good stuff is publicly exposed.
HTH,
Bill www.devbuzz.com www.knowdotnet.com
"MadCrazyNewbie" <te**@nospam.com> wrote in message news:os********************@karoo.co.uk... Hey Again Group,
Sorry to be a pain but ..........
I have a Windows Forms Project with serveral reports in now.
At the moment I have 7 Forms all Called Print1, Print2, Print3 and so
on. Each form has a Crystal Report Viewer on it assigned to the perticular report eg, Print1.rpt, Print2.rpt, and so on.
Is there a better way to do this by code, im looking at about 50 or so reports and i think its going to get very messy if i have 50 forms all with a crystal report viewer on.
Im thinking on the lines I have one for then in the Display Report
Button code I tell it to load Formx, and use the crystal report viewer with reportx.rpt? Is this correct?
Any Ideas or Code?
Many Thanks MCN
Assuming that the viewew is on LoadReportPrint and it's called
CrystalReportViewer1
Dim whatever as New LoadReportPrint
Dim rpt as New Faxs.RptObjectName (ie Faxes - it will be in intellisense b/c
they're typed)
whatever.CrystalReportsViewer1.ReportSource = rpt
whatever.ShowDialog() 'Or .Show()
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:jP********************@karoo.co.uk... Thanks for your reply, So far for my button I have
Private Sub btnFaxsPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFaxsPrint.Click Dim LoadReportPrint As frmReportPrint LoadReportPrint = New frmReportPrint() LoadReportPrint.ShowDialog()
Me.CrystalReportViewer1.ReportSource = Faxs.rpt End Sub
Only thing is it errors on the Me.CrystalReportViewer1 Line as CrystalReportViewer1 is in a different form:(
Could somebody Kindly help?
Many Thanks MCN
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message news:Ok*************@tk2msftngp13.phx.gbl... Just create One viewer and call it using the various reportrs and whatever options you want. One viewer can do it all for you and all the good
stuff is publicly exposed.
HTH,
Bill www.devbuzz.com www.knowdotnet.com
"MadCrazyNewbie" <te**@nospam.com> wrote in message news:os********************@karoo.co.uk... Hey Again Group,
Sorry to be a pain but ..........
I have a Windows Forms Project with serveral reports in now.
At the moment I have 7 Forms all Called Print1, Print2, Print3 and so on. Each form has a Crystal Report Viewer on it assigned to the perticular report eg, Print1.rpt, Print2.rpt, and so on.
Is there a better way to do this by code, im looking at about 50 or so reports and i think its going to get very messy if i have 50 forms all
with a crystal report viewer on.
Im thinking on the lines I have one for then in the Display Report Button code I tell it to load Formx, and use the crystal report viewer with reportx.rpt? Is this correct?
Any Ideas or Code?
Many Thanks MCN
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dr. Indera |
last post by:
hello,
i previously posted the questions below on several crystal reports newsgroups, including the one for
the company that makes crystal reports, but never got an answer, so i'm hoping that...
|
by: Brad |
last post by:
I have just posted a variation of this question on the Crystal Reports
board, but most times I do not get a reponse.
I have a report in which I asked about yesterday and after working all day
on...
|
by: Dr. Indera |
last post by:
hello,
i previously posted the questions below on several crystal reports newsgroups, including the one for
the company that makes crystal reports, but never got an answer, so i'm hoping that...
|
by: Jay |
last post by:
I am getting mixed messages from the asp.net website hosting providers - some
say they do not support Crystal Reports due to a $25,000 per cpu licensing
fee, others say all I need to do is install...
|
by: furby |
last post by:
I'm asking this on the off chance that someone out there might have
seenit before.
In my current application, when the user logs in, the state variable
called "role" is assigned to them,...
| |
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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...
| |
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...
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |