Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2004, 11:19 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printing to File in VB (Adobe Postscript Driver)

Hey all,
I'm printing to a FILE device using the Adobe postscript driver and I wonder is there a way suppress the file dialog and simply hand a filename to the Printer Object?

Holding my breath for a response :(
Thanks


 
Old July 16th, 2004, 12:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dirty trick:

Dim FSO as FileSystemObject
set FSO = new FileSystemObject
FSO.CopyFile "C:\myTextFile.txt", Printer.DeviceName

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Adobe after printing PDF file BoardBabe Access VBA 5 October 11th, 2011 05:26 PM
Adobe illustrator file in asp.net nshankar ASP.NET 1.0 and 1.1 Basics 0 August 1st, 2007 04:30 AM
Split PostScript file / Print PS to PS saebe Pro VB 6 1 February 27th, 2006 11:02 AM
VB Net and Adobe GoLive dany.lessard VB.NET 0 August 1st, 2004 05:06 PM
Driver for VB.Net and Oracle CanMike Pro VB Databases 3 June 30th, 2004 08:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.