?
Solved

Printer Setup Button

Posted on 2003-03-20
17
Medium Priority
?
378 Views
Last Modified: 2008-02-01
I m using VB6 and Crystal Report 7. I have added the report into my application but cannot seems to let user choose which printer to print to. I also cannot seem to let the user choose if the report should be printed in landscape or potrait mode.

I've seen the other questions and answers in this forum but they do not seem to work with me. I cannot seem to find the printersetup object/property in my application.
I've tried to use the below code by DRRYAN3 but it says "object doesn't support this property".

"crRep.PrinterSetup me.hwnd"

I have tried to use the printer dialog control but I do not want to set the selected printer to the default printer everytime I choose to print to a particular printer.

Can anyone help me and pls provide me a more detail description way of doing it?
0
Comment
Question by:5Es
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
  • 3
17 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 8181371
This may help

http://support.crystaldecisions.com/communityCS/TechnicalPapers/scrprinterdependency.pdf.asp

I also have a printer selection screen I built for use with CR8 and the OCX.  It may be of use.

I can't get to my web site right now.  If you want it I'll post the link tonite.

mlmcc

0
 

Expert Comment

by:vbjohn
ID: 8227439
I am still having the same problem also.  Please let us know if you have that up on your site.

John-
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8228899
What VB code are you using to call the report?

mlmcc
0
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

 

Expert Comment

by:vbjohn
ID: 8238307
I have CR Professional instead of CR Developers Edition.  That is why I am having a huge problem.

John-
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8242019
CR7 didn't have a Developer edition.  Professional included all the developer tools.

What VB code are you using to call the report?

mlmcc
0
 

Author Comment

by:5Es
ID: 8242507
thanks for the pdf document. it gave me an insight on the workings for CR. But it's not what I asked for. I want a printer setup button in my report that allows a user to select specific printer when printing.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8243374
Look at this site.  I have a form I use for  that purpose.  It should work for you or at least give you ideas on how to make it work.

http://groups.msn.com/McCrackenUNO/files.msnw?fc_p=%2FExperts%20Exchange%20Files&fc_a=0

You may have to join the group.  Base URL is
http://groups.msn.com/McCrackenUNO

Look in Documents - Expert Exchange Files
You want frm_Printer_setup.frm

mlmcc
0
 

Expert Comment

by:vbjohn
ID: 8248568
I have CR 8.5 Professional.


CrystalReport1.ReportFileName = App.Path & "\DReport.rpt"
CrystalReport1.Connect = "pwd=firehose;username=sa"
CrystalReport1.StoredProcParam(0) = txtEmpSNum.Text
CrystalReport1.StoredProcParam(1) = txtEmpENum.Text
CrystalReport1.StoredProcParam(2) = cmbDedStart.Text
CrystalReport1.StoredProcParam(3) = cmbDedEnd.Text
CrystalReport1.Action = 1


John-
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8249911
Are you asking a question VBJohn or trying to provide help?

If you are asking your own question, please start a new question.  If you are trying to help you are way off the mark.

mlmcc
0
 

Author Comment

by:5Es
ID: 8352610
Hi, sorry for the late reply. I have been away for awhile. Anyway, I still cant find the solution to my problem. Thanks for the help guys but I don't think its what I want.

You see, I want a print setup button in my crystal report to appear in my vb program. It is to allow users to select different printer, paper orientation, and paper size without changing my default printer setting.

As for mlmcc, thanks for the site add but it did not help me.

Can you guys help?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8353668
Why didn't my printer setup form help?

What more do you need?

mlmcc
0
 

Author Comment

by:5Es
ID: 8354542
i've seen your printer setup button form. it doest show how i can assigned the selected papersize/paper orientation in VB. i know how to come out with the dialog box to select printer and paper type n stuff, but i just cannot seem to make the printer accept my selected paper type.please help
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8356215
I'll try.  That wasn't a requirement for us so it wasn't added.  I may have to wait until Monday since I don't have CR and VB here.

mlmcc
0
 

Author Comment

by:5Es
ID: 8357415
Thanks. Meanwhile, I m still trying.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 200 total points
ID: 8357462
According to my reference book there is a printerselect method for the OCX

crRpt.PrinterSelect

It might have what you need.

mlmcc
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question