Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro: Convert to PDF & E-mail. Possible?


I'm re-vamping a form that I made last year. Currently the function I'
evalutating works in the following way. Upon confirmation that all th
entered information is complete, copies are e-mailed to the relivan
project leaders.

Problem: The problem with this is the average size of these copies i
roughly 130kb. If I convert the summary page (which is all that need
to be sent out) into a PDF, the file size goes down to about 8kb.

Why I think this should be possible. Both Adobe Acrobat and Nitro PD
(we use both) have "Convert to PDF & Email" buttons that are on th
toolbar, however, since these are add-ons, they aren't in the VBA hel
file, and we all know how good the support is that Adobe offers.

If nothing else, is it possible for me to do a print macro using an
then send the output as an attachment?

Does anyone have any ideas on how to do what I'm trying to do

--
wilro8
-----------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...fo&userid=2693
View this thread: http://www.excelforum.com/showthread.php?threadid=55670

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro: Convert to PDF & E-mail. Possible?


Shall I assume by the silence this is not a possible task?


--
wilro85
------------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...o&userid=26935
View this thread: http://www.excelforum.com/showthread...hreadid=556708

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro: Convert to PDF & E-mail. Possible?


I have been meaning to play about with this but my initial reaction is
that it should be possible.

I have a PDF creator setup as a printer option. By making this the
active Printer or passing this to the activesheet.printout I can get
the PDF to be created. It is then a fairly simple matter of using code
to attach the file to an email.

An issue I have here (which you may not have) is that in creating the
PDF a document profiling form comes up (part of our document management
system) for whcih the obvious way to handle it is to use sendkeys.

This is (sort of) fine if it is just you using the macro. But otherwise
you need to wrap this in code to make sure the window is created and
active before using the send keys.

I am sure there must be a better PDF creator for using in this sort of
environment.
I would look for one with an API rather than using it as a printer
option.

Probably not a huge amount of help.
regards


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=556708

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro: Convert to PDF & E-mail. Possible?


if you do a search for "create pdf vba) you get quite a few useful
articles. The first one to jump out at me is this
http://p2p.wrox.com/archive/vba_excel/2002-11/37.asp

Clearly this has a programmatic interface.

Also just discovered our PDF creator has a command line version which
means that I could save and close my workbook, do an application.run
command_line to create the pdf and then pick it up and email it.

regards

got to go I have a document to finish


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=556708

  #5   Report Post  
Posted to microsoft.public.excel.programming
SA SA is offline
external usenet poster
 
Posts: 5
Default Macro: Convert to PDF & E-mail. Possible?

Wilro:

Stop by our web and look in the MS Excel developer tools area and you'll
find our XL PDF Wizard add in. It allows you to use any one of 10 different
PDF printer drivers (including Acrobat and some other very in-expensive
drivers) to automate create of PDF documents (including bookmarks etc.) from
XL worksheets or workbooks. It also allows you to merge in Word documents
(with bookmarks,) or external PDF files. You can also reference the Add
In in any workbook and use its properties and methods to create your own PDF
creation jobs. So yes, it can be done.

Hope this helps
--
SA
ACG Soft
http://www.groupacg.com


"wilro85" wrote in
message ...

I'm re-vamping a form that I made last year. Currently the function I'm
evalutating works in the following way. Upon confirmation that all the
entered information is complete, copies are e-mailed to the relivant
project leaders.

Problem: The problem with this is the average size of these copies is
roughly 130kb. If I convert the summary page (which is all that needs
to be sent out) into a PDF, the file size goes down to about 8kb.

Why I think this should be possible. Both Adobe Acrobat and Nitro PDF
(we use both) have "Convert to PDF & Email" buttons that are on the
toolbar, however, since these are add-ons, they aren't in the VBA help
file, and we all know how good the support is that Adobe offers.

If nothing else, is it possible for me to do a print macro using and
then send the output as an attachment?

Does anyone have any ideas on how to do what I'm trying to do?


--
wilro85
------------------------------------------------------------------------
wilro85's Profile:
http://www.excelforum.com/member.php...o&userid=26935
View this thread: http://www.excelforum.com/showthread...hreadid=556708





  #6   Report Post  
Posted to microsoft.public.excel.programming
SA SA is offline
external usenet poster
 
Posts: 5
Default Macro: Convert to PDF & E-mail. Possible?

Tony:

Stop by our web and look in the MS Excel developer tools area and you'll
find our XL PDF Wizard add in. It allows you to use any one of 10 different
PDF printer drivers (including Acrobat as well as some other very
inexpensive drivers) to automate creation of PDF documents (including
bookmarks etc.) from XL worksheets or workbooks. It also allows you to
merge in Word documents (with bookmarks,) or external PDF files. You can
also reference the Add In in any workbook and use its properties and methods
to create your own PDF creation jobs. So yes, it can be done.

Hope this helps
--
SA
ACG Soft
http://www.groupacg.com

"tony h" wrote in
message ...

I have been meaning to play about with this but my initial reaction is
that it should be possible.

I have a PDF creator setup as a printer option. By making this the
active Printer or passing this to the activesheet.printout I can get
the PDF to be created. It is then a fairly simple matter of using code
to attach the file to an email.

An issue I have here (which you may not have) is that in creating the
PDF a document profiling form comes up (part of our document management
system) for whcih the obvious way to handle it is to use sendkeys.

This is (sort of) fine if it is just you using the macro. But otherwise
you need to wrap this in code to make sure the window is created and
active before using the send keys.

I am sure there must be a better PDF creator for using in this sort of
environment.
I would look for one with an API rather than using it as a printer
option.

Probably not a huge amount of help.
regards


--
tony h
------------------------------------------------------------------------
tony h's Profile:
http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=556708



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
Convert number to ph # for mail merge (updated) smartgal Excel Discussion (Misc queries) 3 October 17th 08 12:37 AM
need to convert e-mail info from excel spreadsheet ot windows XP merlinus Excel Discussion (Misc queries) 1 December 28th 05 03:04 PM
how do i mail a macro in my personnel macro workbook leo Excel Discussion (Misc queries) 5 December 23rd 05 04:02 PM
in mail merge how do i convert currency from excel to word amedeo Excel Discussion (Misc queries) 1 May 5th 05 10:34 PM
Help with e-mail macro pauluk[_52_] Excel Programming 1 April 23rd 04 12:10 PM


All times are GMT +1. The time now is 03:51 AM.

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"