Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) What's Wrong with my PDF?


Topic: Fails to complete print job
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 140852
From: Jeiia
Date: 10/8/2005 12:01 AM

Dear all,

The script that I use for printing pdf-files from an workbook is the following:

'''''''''''''''''''''''''''''''''''''
Dim PSFileName As String
PSFileName = "" & Rapportsted & "myPostScript2.ps"

ActiveSheet.PrintOut copies:=1, preview:=False, ActivePrinter:="Acrobat Distiller", PrintToFile:=True, collate:=True, PrToFileName:=PSFileName

Dim PDFFileName As String
PDFFileName = "" & Rapportsted & "myPDF2.pdf"

Dim myPDF2 As PdfDistiller
Set myPDF2 = New PdfDistiller
myPDF2.FileToPDF PSFileName, PDFFileName, ""

Kill Rapportsted & "myPostScript2.ps"

Sourcefile = Rapportsted & "myPDF2.pdf"

Filename = Rapportnavn
FilePath = Rapportsted

DestinationFile = FilePath & Filename
FileCopy Sourcefile, DestinationFile

Kill Rapportsted & "myPDF2.pdf"

''''''''''''''''''''''''''''''''''

The Filename and FilePath are dynamic and are defined at the outset.

This usually works fine, but then it suddenly collaps and refuses to translate the postscript file into pdf-format. The message is that it is already in use - which makes no logical sense. Furthermore, the postscript becomes impossible to delete. (You need administrator rights to delete it).

What's wrong? Any ideas?

Regards


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories