Automated print to file from VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Automated print to file from VB

  1. #1
    Pon Thiagarajan TS Guest

    Automated print to file from VB


    My problem is to print a file from VB, setting the default printer port as
    FILE PORT..When I try print the file( say test.txt) it opens a dialog box
    asking for an output filename. All i want to know is that..Is there any API
    calls to provide a default filename, so that I can able to By-pass that dialog
    box...????

    Your Help will be very much appreciated..

    Pon.

  2. #2
    B. Bradford Guest

    Re: Automated print to file from VB


    This is actually an extremely difficult question. After a huge amount of
    research I find that you need a special program to accomplish this -- it's
    called redmon and it allows you to redirect the port to an output file.




    "Pon Thiagarajan TS" <ponraj_ts@hotmail.com> wrote:
    >
    >My problem is to print a file from VB, setting the default printer port

    as
    >FILE PORT..When I try print the file( say test.txt) it opens a dialog box
    >asking for an output filename. All i want to know is that..Is there any

    API
    >calls to provide a default filename, so that I can able to By-pass that

    dialog
    >box...????
    >
    >Your Help will be very much appreciated..
    >
    >Pon.



  3. #3
    B. Bradford Guest

    Re: Automated print to file from VB


    This is actually an extremely difficult question. After a huge amount of
    research I find that you need a special program to accomplish this -- it's
    called redmon and it allows you to redirect the port to an output file.




    "Pon Thiagarajan TS" <ponraj_ts@hotmail.com> wrote:
    >
    >My problem is to print a file from VB, setting the default printer port

    as
    >FILE PORT..When I try print the file( say test.txt) it opens a dialog box
    >asking for an output filename. All i want to know is that..Is there any

    API
    >calls to provide a default filename, so that I can able to By-pass that

    dialog
    >box...????
    >
    >Your Help will be very much appreciated..
    >
    >Pon.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center