LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Similar PDF generation Problem

Hello All,

I have aproblem similar to many I've read on generating a PDF to a filename,
but the suggestions for the other posts that I've read don't seem to be
working for me.

Any help would be greatly apprecited.

I'm using Excel 2003 SP1 & Adobe Acrobat 7.0 Professional version 7.0.7

What's happening: I get a Preview File that looks fine. But when I try to
open the file generated, I get the message "Acrobat could not open
'di02000_cp1.pdf' because it is either not a supported file type or because
the file has been damaged.....To create an Adobe PDF document, go to the
source applicatio. Then print the document to Adobe PDF."

Here is my code:
Sub PrintPDF()

directory2use = "\\dsks48\process\"
filename2use = directory2use + "di02000_cp1.pdf"

Application.ActivePrinter = "Adobe PDF on Ne03:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:= _
True, ActivePrinter:= "Adobe PDF on Ne03:", PrintToFile:= _
True, Collate:=True, PrToFilename:=filename2use
End Sub


Any suggestions?

Thanks in advance,
Cindy W.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calender Generation Joel Excel Discussion (Misc queries) 5 January 28th 08 09:41 PM
Key Generation Sri Excel Discussion (Misc queries) 1 March 9th 07 03:53 PM
Similar Problem as "Multiple Matched Lines" jello523 Excel Discussion (Misc queries) 0 November 21st 06 09:40 PM
Row ID generation Mikus Excel Programming 2 September 3rd 05 05:39 PM
similar problem to moving to next cell Rose Davis New Users to Excel 2 August 25th 05 05:08 PM


All times are GMT +1. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"