Results 1 to 5 of 5

Thread: Direct print from data report [ Very Urgent]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    365

    Direct print from data report [ Very Urgent]

    Hi

    Pls help me by telling the line of command to directly print from the form to a Datareport.
    I need to complie this program now.


    Thanks alot.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    365

    Re: Direct print from data report [ Very Urgent]

    Can I print directly from the program (e.g. form) without opening up the datareport?

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Direct print from data report [ Very Urgent]

    Moved to reporting section

  4. #4
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Direct print from data report [ Very Urgent]

    Hi,

    Yes, its possible...

    Try this link

    http://abstractvb.com/code/code708.asp

    Refer to Part 5 of the lesson....

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  5. #5
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Direct print from data report [ Very Urgent]

    if you want to print the datareport directly without showing it use the following code
    VB Code:
    1. datareport1.PrintReport False, rptRangeAllPages  'this will print all pages of the report
    2. 'to print a form, use
    3. Form1.PrintForm
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

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