Results 1 to 2 of 2

Thread: Help me for CR Direct Print DialogeBox from VB

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Location
    Hyderabad
    Posts
    46

    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...)
    satyarao

  2. #2
    Banned
    Join Date
    Jul 2003
    Location
    New delhi
    Posts
    143
    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
  •  



Click Here to Expand Forum to Full Width