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: 1
Default how to print to pdf?


Hi, i'm new to vb stuff and i need fill an Excel Sheet with some data
from XML files and then i need to print that sheet to a .pdf file. And
doing this from a .hta application.

I do everything and i have a macro in the excel sheet that do this:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
PrToFileName:=filename

And in the Excel application i call this macro with the run command,
like this:
ExcelAppA.run "print2pdf"
And with this everything works, but the thing is that i need to pass
the filename as a parameter to the macro, and when i do that i don't
get any errors, but i also don't get any .pdf file.
I print the filename with the entire path, and i'm sure it's ok.

I need this for yeasterday, so if anyone can halp me on this? Is there
any way to do it without a macro, like calling the printOut method from
the .hta application?

Thanks,


--
Jlorga
------------------------------------------------------------------------
Jlorga's Profile: http://www.excelforum.com/member.php...o&userid=31707
View this thread: http://www.excelforum.com/showthread...hreadid=514081

 
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
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook will Excel Programming 3 September 23rd 04 08:05 PM


All times are GMT +1. The time now is 02:57 PM.

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

About Us

"It's about Microsoft Excel"