|
-
Sep 9th, 2000, 08:10 AM
#1
Thread Starter
Junior Member
I have a combo box that contain a list of installed printers. However this only have the printer names. I also need the following info for crystal reports:
CurrentPrintDriver = Printer.DriverName
CurrentPrintName = Printer.DeviceName
CurrentPrintPort = Printer.Port
CrystalReport1.PrinterDriver = CurrentPrintDriver
rystalReport1.PrinterName = CurrentPrintName
CrystalReport1.PrinterPort = CurrentPrintPort
Can anyone please help me with this???
Thanks.
-
Sep 9th, 2000, 08:52 AM
#2
Member
intPrinter = 1
For Each oPrn In Printers
strPrinterDriver(intPrinter) = oPrn.DriverName
strPrinterPort(intPrinter) = oPrn.Port
cboInvoicePrinter.AddItem oPrn.DeviceName
intPrinter = intPrinter + 1
Next
You can write these values to arrays while you are populating the combo box.
-
Sep 9th, 2000, 09:13 AM
#3
Thread Starter
Junior Member
d.paulson
THANK YOU!!! This works great!!!
-
Sep 18th, 2000, 06:39 AM
#4
Lively Member
Originally posted by mikegt
I have a combo box that contain a list of installed printers. However this only have the printer names. I also need the following info for crystal reports:
CurrentPrintDriver = Printer.DriverName
CurrentPrintName = Printer.DeviceName
CurrentPrintPort = Printer.Port
CrystalReport1.PrinterDriver = CurrentPrintDriver
rystalReport1.PrinterName = CurrentPrintName
CrystalReport1.PrinterPort = CurrentPrintPort
Can anyone please help me with this???
Thanks.
Hi there,
Hope you can help me. I am a beginner, trying to use Crystal reports. In my VB6 program, when the user clicks a command button, the crystal report has to opened.
How can I do this? Your help would be greatly appreciated.
Thank you.
Rathi.J
-
Sep 18th, 2000, 09:21 AM
#5
Thread Starter
Junior Member
Hope this helps. Also somewhat beginner with cr.
'Use 0 here for preview or a 1 to print with no preview
CrystalReport1.Destination = 0
'Tell cr the report file you want to use.
CrystalReport1.ReportFileName = "c:\MyReport.rpt"
'Process request.
CrystalReport1.Action = 1
-
Sep 18th, 2000, 11:08 AM
#6
Addicted Member
Hello mikegt
I was wondering if you know much about charting in Crystal Reports? I have a problem with my chart.
Thanks jeffro.
-
Sep 18th, 2000, 11:49 AM
#7
Thread Starter
Junior Member
Sorry Jeffro, I don't know much about charing.. Maybe someone else here can help you with that one.
-
Sep 18th, 2000, 01:03 PM
#8
Addicted Member
-
Sep 18th, 2000, 08:57 PM
#9
Lively Member
Originally posted by mikegt
Hope this helps. Also somewhat beginner with cr.
'Use 0 here for preview or a 1 to print with no preview
CrystalReport1.Destination = 0
'Tell cr the report file you want to use.
CrystalReport1.ReportFileName = "c:\MyReport.rpt"
'Process request.
CrystalReport1.Action = 1
Thanks for your help and time.
Could you pls.be more specific about
CrystalReport1.ReportFileName property.
What are the declarations I have to make at the beginning?
Any help would be greatly appreciated.
Thanks again.
sincerely,
Rathi.j
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|