CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Posts
    18

    Sending File To Printer

    Hello Friend,

    I am using the concept of Text I/O and creating a report in visual basic, I want to send the report to the printer directly .. In this regard I was using the Printer object print command but it is not that efficient.. Can U suggest me any API wherein I can directly send the File to the printer ..

    Urgent!!

    Regards

    Prasasd


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Sending File To Printer

    you can use the ShellExecute API and specify "print" as the second parameter.
    This will invoke the application that is associated with the extention and cause it to print the file.


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

Featured