|
-
Feb 25th, 2004, 06:35 AM
#1
Thread Starter
Member
Help me for CR Direct Print DialogeBox from VB
Hai there !
I am working with Visual Basci 6, Crystal Report 8.5 and Ms-Access 2000.
I generated using the access query. and that report i am calling from vb screen.
Since i know the details and the format of the report (Invoice/Bill), when i click print command button in the entry (VB) screen, i dont want to see the report which will be opeing in the separate crystal report window. if atall it is opened, i dont want to click on 'print' icon of the report, it should directly open print dialoge box of that report, evenif it is in minimized state there will be no problem.
I am using crystal report .OCX tool in the screen(form) level. and my code is below.
Crystalreport1.SQLQuery = "Select * from MyQuery"
Crystalreport1.printReportfilename = "d:\Project\MyReport.Rpt"
Crystalreport1.PrintReport
I will be thankful to any suggestion. Please suggest me at earliest.
Waiting for response.
(sorry for using bad english...)
-
Feb 25th, 2004, 06:59 AM
#2
Banned
Crystalreport1.SQLQuery = "Select * from MyQuery"
Crystalreport1.printReportfilename = app.path "&\Project\MyReport.Rpt"
Crystalreport1.activewindow=crptprinter
Jio or jine do
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
|