Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing Excel as PDF



Hi All

Im stuck with this problem for the last couple of days. Its like this..
I have an excel workbook that contains 6 worksheets created
programmatically in C#. All Im trying to print this workbook in PDF
format in which case it should prompt me ONCE only to save it and then
should save it as one single pdf document with six pages. My problem is
it saves the 6 worksheets as 4 different pdf documents and prompts me 4
times. Any help would be greatly appreciated.

thx
Al

P.S the print code is

objBook.PrintOut(1, 6, 1, false, "Adobe PDF", false, Type.Missing,
Type.Missing);

The name of the Adobe distiller printer is "Adobe PDF"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Printing Excel as PDF

I've had this problem from time to time. Often it because the dpi on
printer is not the same on each page. When I change it works ok.

Hope this helps
Hank
"Al S" wrote in message
...


Hi All

Im stuck with this problem for the last couple of days. Its like this..
I have an excel workbook that contains 6 worksheets created
programmatically in C#. All Im trying to print this workbook in PDF
format in which case it should prompt me ONCE only to save it and then
should save it as one single pdf document with six pages. My problem is
it saves the 6 worksheets as 4 different pdf documents and prompts me 4
times. Any help would be greatly appreciated.

thx
Al

P.S the print code is

objBook.PrintOut(1, 6, 1, false, "Adobe PDF", false, Type.Missing,
Type.Missing);

The name of the Adobe distiller printer is "Adobe PDF"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing Excel as PDF

"Al S" wrote:



Hi All

Im stuck with this problem for the last couple of days. Its like this..
I have an excel workbook that contains 6 worksheets created
programmatically in C#. All Im trying to print this workbook in PDF
format in which case it should prompt me ONCE only to save it and then
should save it as one single pdf document with six pages. My problem is
it saves the 6 worksheets as 4 different pdf documents and prompts me 4
times. Any help would be greatly appreciated.


I found a fix to this problem, that works in Office 2000 anyway...

Each worksheet is created from a single worksheet.
Right click on the target worksheet, "Move or Copy", check "Make a Copy".

DON'T Insert-Worksheet.
DON'T populate more than a single worksheet that is to be printed from the
auto-generated ones.

Then format away. The result for me was a five page, single pdf, three
pages portrait, and two pages landscape (with graphics). Before applying
this trick, I had three individual pages (each as their own pdf) and a pair
of pages that had been copied one from the other (which was the clue)

Yes, it is a pain in the tush to copy the contents and the column widths
from existing spreadsheets, but it does pay off...

Assuming making the resolution the same for all pages doesn't work...
Reply
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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing a heading on each new page when printing Brian Excel Discussion (Misc queries) 3 November 15th 06 05:22 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM
Printing? Worksheets not printing the same on multiple pc's! 43fan Excel Programming 2 April 29th 04 02:34 PM


All times are GMT +1. The time now is 04:14 PM.

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"