dcsimg
Results 1 to 7 of 7

Thread: [RESOLVED] Create a printer driver to print to a text file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Resolved [RESOLVED] Create a printer driver to print to a text file

    Hello,
    I need to create a driver that can be installed as a printer and instead of printing to a physical printer it needs to print to a text file. I have no idea how to do this. I have searched for an answer on these forums but so far I haven't had much luck. I know it isn't easy to create a driver in VB but I don't know if this is technically a "driver" since it isn't interfacing with actual hardware. Any help with this would be greatly appreciated.

    -Dan

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: Create a printer driver to print to a text file

    thanks
    amrita

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Re: Create a printer driver to print to a text file

    Those links didn't really help because they just told me you couldn't do it. But there is a program out there called PDFcreator that is a PDF printer and it is written in vb. i just need to know how to do it so it writes a .txt instead of a PDF.

  4. #4
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: Create a printer driver to print to a text file

    Are you trying to create a textfile? Why don't you save it like "yourfile.txt"?


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  5. #5
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: Create a printer driver to print to a text file

    Quote Originally Posted by bagstoper View Post
    Those links didn't really help because they just told me you couldn't do it. But there is a program out there called PDFcreator that is a PDF printer and it is written in vb. i just need to know how to do it so it writes a .txt instead of a PDF.
    I don't think its feasible to write code in vb.net for printer driver.
    thanks
    amrita

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Re: Create a printer driver to print to a text file

    Quote Originally Posted by Radjesh Klauke View Post
    Are you trying to create a textfile? Why don't you save it like "yourfile.txt"?
    Well i would do that but the program that i need to get the file from cant save or export files, it can only print files. So i need to build a virtual printer that can save the file to the hard drive. I cant modify the original program to allow exporting or saving because it is not mine.

    Posted from my ipod touch

  7. #7
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: Create a printer driver to print to a text file

    Can you select a certain Windows printer?

    You can try then to add a printer with the name "Generic/Text only"
    Select this printer and choose option "Print to file".

    I must say however that this file contain some white spaces, but perhaps it will help you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width