Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to PRN file from Word97
Message
From
19/10/2000 15:13:07
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00431408
Message ID:
00431724
Views:
15
Yeah, but that doesn't solve your problem. Your problem was that you had another printer driver you had to use to format the data and then you wanted to pass it over to a PDF, right?



>
>Here is some documentation from Rick Strahl on sending output to a PDF file:
>
>------------------------------------------------------------------
>IMPORTANT INSTALLATION INSTRUCTIONS:
>
>Requires Full Adobe Acrobat installation. This is not the free reader
>package but the PDF creation package. These install instructions deal
>with getting Acrobat configured to print files in unattended mode.
>Adobe has done a real shitty job exposing the printer driver properly and
>this solution may not work with future versions of the PDFWriter software
>according to the docs I read. This code has been tested with Version 3.02
>under Windows NT and it works fine.
>
>Here's what you need to do to print without a dialog from Windows NT:
>
>Make sure the PDFWriter printer driver is installed and that the
>printer driver has its port set to LPT1 and not FILE. File will
>force a file name popup from the printer driver in addition to the PDF
>driver file requirements.
>
>Find C:\WINNT\system32\spool\DRIVERS\W32X86\2\__pdf.ini.
>Note this file may exist in other places - just the W32X86 directory
>or any numbered subdir thereof. 2 seems to be the space where it's
>expected. There may be multiple copies of this file - the right one
>should have a bunch of flags in it and should show the last document
>you printed with a date and whatever you typed for the title.
>This class will look for the file by default in (which you can
>override in the Init as a parameter):
>
>Win95: WINDOWS\Win.ini
>WinNT: WINNT\SYSTEM\spool\DRIVERS\W32X86\2\__pdf.ini
>
>Add the following two settings:
>
>PDFFilename=c:\temp\wwPdf.pdf
>bDocInfo=0
>
>------------------------------------------------------
>
>I believe that this may help.
>
>Dave :-)
>
>
>------------------------------------------------------
>You wrote:
>
>No sweat. But I'm *still* looking for a way to go straight to PDF without the PRN via setting the port to a PDF file like you can do manually.
>
>>I think I have found the answer:
>>
>>
>>I just found that there is an "OutputFileName" parameter that I can pass.
>>
>>I recorded a macro, looked at it, found the parameter and then tested it. It worked!
>>
>>******************
>>Macro Routine:
>> Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
>> wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
>> Collate:=True, Background:=True, PrintToFile:=True, OutputFileName:="test.prn", _
>> Append:=False
>>
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform