Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!ix.netcom.com!netcom.com!kthompso
From: kthompso@netcom.com (Kevin Thompson)
Subject: Re: Any conversions between Documents and Files in VisualWorks 2.0 ????
Message-ID: <kthompsoDLpwrJ.36A@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <4e66pa$mfs@brtph500.bnr.ca>
Date: Thu, 25 Jan 1996 03:38:07 GMT
Lines: 29
Sender: kthompso@netcom13.netcom.com

In article <4e66pa$mfs@brtph500.bnr.ca>,
Venkatesh Nakkala  <venkatesh.nakkala@nt.com> wrote:

>I have some reports created using Documents (formatted and sent to the
>Printer after generating). Is there any method of converting Documents to
>Files (Unix using VisualWorks 2.0) or getting a File to read from a
>Document..  we need to add some functionality to also be able to save these
>reports to Files

Hmmm, is it appropriate for me to post answers from PPS support on this?  In
case it isn't, I'll paraphrase: it depends on your platform.  Obviously, a
file is being created at some level and being sent to the printer, the
question is whether you have access to it.

If you're under Windows NT (or Windows?) and doing HostPrinting, you can
select the Printers option from the Control Panel and when the Print Manager
opens up, select Properties from the Printer pull down menu.  In the
Properties under Print to: select File: and accept it.  This will dump EPS to
that file.

If you're using postscript printing, look in the working directory, there's a
PS file called PrintJob (TempFileName on DocumentRenderer) that gets
generated.  I'm not sure if there's a way to get VW to generate the file but
not send it to the printer, though looking at PostScriptFile>>print it looks
like you have control (never tested it).

Kevin
-- 
kthompso@netcom.com        
