Active Topics Memberlist Search Help | |
Register Login |
Using PDF reDirect | |
EXP Systems Forum : PDF reDirect : Using PDF reDirect |
Topic: Excel does not print all pages | |
Author | Message |
Chriasl
Newbie Joined: 21 Jan 06 Location: Austria Posts: 2 |
Topic: Excel does not print all pages Posted: 21 Jan 06 at 1:47PM |
I am using PDF Redirect to print pages to pdf out of an Excel Makro. It is a code written by Michel_K17 I found in the internet to generate automatically pdfs out of VBA Excel. But it only prints the first page instead of all 7. When I use PDF Redirect over the Comandbar "Print" it works. How can I change the settings, so the programm prints all pages? |
|
Chriasl
|
|
IP Logged | |
Michel_K17
Moderator Group Forum Administrator Joined: 25 Jan 03 Posts: 1673 |
Posted: 21 Jan 06 at 2:30PM |
Hi,
I think I have an answer for you. The sample code is like this: ThisWorkbook.Sheets(1).PrintOut 1, 1, 1, 0, sPrinter The parameters are:
So, if you want to print all the pages, I would change that line of code to: like this: ThisWorkbook.Sheets(1).PrintOut , , , , sPrinter Here are additional things you can check: Make sure you use the sample code that matches the version of PDF reDirect Pro. There is sample code for v2.1 and sample code for v2.0. You can find and download the correct sample code here: http://www.exp-systems.com/forum_exp/forum_posts.asp?TID=39&KW=Excel If you are trying to print multiple sheets into one PDF, then you need to make sure that all the sheets have the same settings. This is covered in a Microsoft help file on the Internet. All of the details are available here: http://www.exp-systems.com/forum_exp/forum_posts.asp?TID=31&KW=Excel Regards, Michel |
|
IP Logged | |
Chriasl
Newbie Joined: 21 Jan 06 Location: Austria Posts: 2 |
Posted: 22 Jan 06 at 7:09AM |
It worked, but I changed to ThisWorkbook.Sheets(1).PrintOut 1, 7, 1, 0, sPrinter Thank you very mutch foryour quick reply.
|
|
Chriasl
|
|
IP Logged | |
Michel_K17
Moderator Group Forum Administrator Joined: 25 Jan 03 Posts: 1673 |
Posted: 22 Jan 06 at 9:34AM |
You are welcome!
|
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |