Results 1 to 10 of 10

Thread: How do I send a *file*(txt + graphics) to printer?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391

    How do I send a *file*(txt + graphics) to printer?

    What I've done is set up Adobe's PDFWriter as my default printer so that all I can quick-create PDFs . I do this by opening the file in WordPad and using the standard File>Print and it does the rest.

    What I'm trying to do with VB is find [some sort of standard API maybe?] that can accept a string variable perhaps which contains the path and name of a file. I'm hoping that this API or Function or anything can then just send that file to the default printer and let it (the printer) deal with it. I would normally use the Printer object but the files will be .doc and contain a graphical header (of varying size).

    I can get this to work with a file that has only text, but if there is an image inserted into the file I get an error (62) - Input past end of file.

    Can anyone shed some light on this? Is there some function or procedure that I can pass a filename to and have it pass it to the default printer? Any insight will be appreciated.

    Thanks in advance
    Aaron Brennan
    Last edited by brenaaro; Sep 17th, 2001 at 03:03 PM.

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