|
-
Nov 23rd, 2003, 11:27 PM
#1
Thread Starter
Junior Member
Printer & Paper Size
I have Developed a Crystal report and it takes paper size of fanfold 12" X 15". Now my problem is how can I set Report to Size 12"x15" and printer to Epson DFX 8500 through VB COde.
Help Me
-
Nov 24th, 2003, 05:26 AM
#2
Addicted Member
Re: Printer & Paper Size
Originally posted by Sonamg
I have Developed a Crystal report and it takes paper size of fanfold 12" X 15". Now my problem is how can I set Report to Size 12"x15" and printer to Epson DFX 8500 through VB COde.
Help Me
u can use
commondialog1.showprinter 'to select the printer and paper size
commondialog1.printerdefault = true ' to make it the default printer for VB app. to print
to set the paper size.
Cute Member 
-
Nov 25th, 2003, 01:46 AM
#3
Thread Starter
Junior Member
Though I can do the way you suggest me.... but problem is after I select the Printer and Papersize the crystal report size remains same and points to other printer.
Is there way through which code can control what ever changes I made through commondiloge.printer effect to crystal report too
-
Nov 26th, 2003, 04:58 AM
#4
Addicted Member
loop through the printer's collection & set the default printer for your application to EPSON.
like
x = 0 ' it may be 1,2,3... depends upon your control panel installed printer settings.
set printer = printers(x)
And then run Crystal Report
See you,
-Jai
[Friends Never Say Good Bye]
-
Nov 26th, 2003, 12:18 PM
#5
Member
as Jaiboy mentioned...
--------------
For Each X In Printers
If UCase(Trim(X.DeviceName)) = UCase(Trim(str_ReportPrinter )) Then
Report.SelectPrinter Printer.DriverName, str_ReportPrinter, Printer.Port
Report.PaperOrientation = crPortrait
Report.PaperSize = crPaperA4
End If
Next
-----------
str_ReportPrinter is your printer name variable
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
|