473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to send embedded word document as a mail

Hi All,

I'm a new bee in access with VBA. I'm doing a project and got stuck somewhere. Please help me.

Problem discripton: I'm using ACCESS 2010. I have a form which is having a embedded word document. What i'm trying to do is i want to enable user to format a mail in the embedded word document which will contain rich text and screenshots then with a click of button an outlook mail should open and content of this document should be pasted there. Once user sends this email, i want to save contet of embedded document in the database.

Many thanks in advance !
Dec 16 '13 #1
4 4133
zmbd
5,501 Expert Mod 4TB
ravidcurious
That is quite the undertaking!
We ask that each thread be limited to one question and that the question be fairly limited in scope.

Some advice,
1) Do not use an embeded document - use a template instead.
2) I would suggest using the automation code with that template. Your Access tables can have the links to the images, store the body text etc... for examples of automation code: http://bytes.com/topic/access/insigh...ion-automation This covers Outlook and Excel; however, word will have the same concepts - just different object model.
3) Storing the documents within the database will quickly fill up the 2GB limit especially with graphics. I would offer instead that your Access tables store a link to the file
4) Interoperoperations between the two programs will be somewhat tricky, even with the automation code.
Dec 16 '13 #2
In Word 2010 and in Word 2007, the Send to Mail Recipient feature is not available in the Ribbon. To use this feature, you must add this command to the Quick Access Toolbar (QAT). To do this, follow these steps.

Word 2010

On the File menu, click Options.
Click Quick Access Toolbar, and then click All Commands in the Choose commands from list.
In the list that appears, click Send to Mail Recipient, and then click Add to add the command to the Quick Access Toolbar.

Word 2007

Click the Microsoft Office Button Office Button, and then click Word Options.
Click Customize, and then click All Commands in the Choose commands from list.
In the list that appears, click Send to Mail Recipient, and then click Add to add the command to the Quick Access Toolbar.

Word 2003 and Word 2002

To send a document directly from Word 2003 or from Word 2002 as an email message, follow these steps:
On the File menu, point to Send To, and then click Mail Recipient to send the document as the body of the message. Or, point to Mail Recipient (as Attachment) to send the document as an attachment to the message.

Note If Send To or Send is not available on the File menu, you must install Microsoft Outlook, Microsoft Outlook Express, or a Messaging Application Programming Interface (MAPI)-compliant third-party email program. For more information about Outlook and Outlook Express, see the "How to install Microsoft email programs" section that follows.
If the Choose Profile box appears, select Default Outlook Profile or another valid profile that you have created, and then click OK. Word adds an email header to the document.
Type the email address of the recipient on the To line, or select the email address from your Address Book.
Type a subject for the email message on the Subject line.
Click Send a Copy if you want to send the document as the email body. Or, click Send if you want to send the document as an attachment.

Note In Word 2010 and in Word 2007, if you click Send to Mail Recipient by mistake and want to cancel the action, click Send to Mail Recipient again. In Word 2003 and in Word 2002, if you click Send a Copy by mistake and want to cancel the action, click Send a Copy again.

Thanks
Jeff Jones
Dec 17 '13 #3
zmbd
5,501 Expert Mod 4TB
Because there have already been a few views since Gutts009 post, there is a need to clarify some information:
In Word 2010 and in Word 2007, the Send to Mail Recipient feature is not available in the Ribbon.
Other than for convenance, none of the instructions are required as the feature is available via the backstage. Ribbon>File>[Save & Send]>select option
I have cut off the pane for Office/Word2010 for space; however, in my installation there is an option to send via "Attachment," "Link," "PDF Attachement," "XPS Attachment" and "Internet Fax."



Note If Send To or Send is not available on the File menu, you must install Microsoft Outlook, Microsoft Outlook Express, or a Messaging Application Programming Interface (MAPI)(...)
This is true if you wish to use the built in features; however, I do believe that the CDO method is still available at the OS level. However, this would require the use of VBA to accomplish.

@Gutts009: How does your post help ravidcurious accomplish the posted goal of automating the entire process?

@ravidcurious: I still stand by my first reply.
1) Embedding the documents is not really the best situation.
2) If you can tell us specfically where and how you got stuck, perhaps we can get you moving again; however, without some more detailed information there's not much more that can be done.
3) Please keep in mind that there is still the single question limit per thread.
(^_^)
Attached Images
File Type: jpg BytesThread_953611_sendwordemail.jpg (42.0 KB, 2289 views)
Dec 17 '13 #4
Hi ZMBD,

Thanks for taking time and providing guidance.

Sorry, i didn't know the rules but i think breaking the problem in the pieces will not give all possible ways in which the problem could be solved. (Peices will not create a bigger picture)

1. I was using embedded document just to format the mail.

2. I have not tried mail template, will give a try and ask you if i need help.

3. I'm going to store mails in word documents and in access table a link to the document. If i use template then i should be able to a) save template code in a word document b) load content of word document in the template (for forwarding and reply).

4. Will try every possiblity.

I will do some home work and come back to you.

@GUTS009 Thanks for taking your time however that will not solve my problem.
Dec 17 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fred Zuckerman | last post by:
I have a table with about 5000 records. Each record has an OLE object (named OLE1) that is an embedded Word document. I'd like some help writing a procedure to loop through all records and save...
3
by: Michael Tkachev | last post by:
Hi Everybody! I have a problem. When I get a HTML of my page that I'm rendering. I need to generate a word-document from a html. And than I have to send this word-document to the users through...
10
by: Aj Blosser | last post by:
Hey guys, I have a question for you, I have a setup where I'm sending files through the POST to a php web page, I read the file contents, put that file contents as text into the POST string, and...
1
by: Les Stout | last post by:
Good day all, I am very new to access and not a programmer! Is it possible to send a word document as an attachment from access. If yes could you please tell me how. thanks in advance for any...
4
by: neoret | last post by:
How do I send a word document as an attachement to a http call? Guess I have to parse it to bytes - does anyone know how this is done? Thanks for any help you can provide :) neoret
0
by: Gargi K | last post by:
Hi, I have been trying to open a word document on a button click event in C# This is the code I am trying to use object fileName = "C:\\test.doc"; object readOnly = false; object isVisible =...
4
by: no8do | last post by:
Hi there, I am brand new in access and VBA programming and I am asking for your help. One of the fields in my db is of the OLE object data-type. I' ve written a vb script that is executed on a...
0
by: ayyanarj | last post by:
Hi, I have a word document that has attached(ie. embedded ) documents like word, ppt, pdf, etc. I have to extract those embedded documents in the document through code. To extract...
0
by: Jim Devenish | last post by:
I am trying to send a Word document as the body (not attachment) of an email. I can create the Word document using VBA in Access. In Word, it is possible to send the document as the body of an...
2
by: I7arkHiro97 | last post by:
Hi, I am a beginner to VBA. I am using MS access 2003. I found some code that works great for sending automatic emails to a list of recipients. My email addresses are housed in a table on access...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.