Results 1 to 5 of 5

Thread: can i print direct from the form ??

  1. #1

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    can i print direct from the form ??

    peaced be with you

    i want to print direct form the form can i make this thing by crystal report 10

    ex :

    print application form without show the crystal report preview



    thanks
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  2. #2
    Hyperactive Member shirishdawane's Avatar
    Join Date
    Dec 2004
    Location
    Mumbai,India
    Posts
    363

    Re: can i print direct from the form ??

    Which control u r using to connect Report with ur application. if u r using Crstal report Control then go to its proparty (Crystal Proparty) and click on general tab , u will get options like To Window, To Printer, To File, To MAPI, To Exchange.
    Select To printer option for ur report destination & select ur report from brows button.
    I hope this will work......
    Allha Hafiz
    On Error GoTo http://www.vbforums.com

    Note :
    1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
    2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.

  3. #3

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Re: can i print direct from the form ??

    peace be with you

    dear shirishdawane

    i am using the crystal viewer in my program only to view and print

    but i want to print it direct form the app to printer

    ex :

    app >>>>>>>>>>>> crystal viwer >>>>>>>>>>> printer

    app >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> printer

    thanks
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  4. #4
    New Member
    Join Date
    Aug 2005
    Posts
    10

    Re: can i print direct from the form ??

    Try this on out

    In Project reference select crystal report viewer or crystal report runtime library, whatever you are using.

    Then here goes if you are using CR 4.6 or less
    VB Code:
    1. private sub CommandButton1_Click()
    2.   dim crp as "yourcrystalreport"
    3.  '---open connection for report--
    4.  '---set data path for report---
    5.   '--your report sql query goes here---
    6.  crp.printreport
    7. end sub

    God bless you my son................In the name of Jesus Christ peace be with you.....

  5. #5
    Junior Member
    Join Date
    Sep 2005
    Posts
    22

    Re: can i print direct from the form ??

    Try this out!

    Dim ReportToDisplay As New MyReport 'The object name of VB designer
    ReportToDisplay.SelectPrinter "gtyjj", "ghgj", "LPT1"
    ReportToDisplay.PrintOut

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