Is there a way to get a reference to results after creating word documents using mail merge? - ms-word

I'm using a VSTO 2010 AddIn to do a Word mail merge with WdMailMergeDestination being set to wdSendToNewDocument. Is there any way to get a reference to the newly created documents or even find out which data row was used to create each one?

Hi Christopher i am working on the same thing and so far i have managed to create an add-in for the outlook. So the Word mail merge completes and the mail in the Outlook outbox folder, right before being sent will attach the attachment of any type.
I am using this for mass scale i am talking about 5000-7000 mails at one go, and the add-in failed me, by attaching to only some emails its like on and off (my guess is the add-in not able to handle the heavy duty). So now i am going a bit further in to the solution by capturing the mailmerge object in the word. (btw i am using i am developing for 2007 should be no problem for 2010 as well)
So far i can suggest you this article that i managed to dig if you have a found a solution please do share tks.
http://support.microsoft.com/default.aspx?scid=kb;en-us;301659
P.S: I know that there are people selling this kind of software commercially.But its best if homebrewed!

Related

Power Automate - Flow Fails InvalidTemplate- When trying to save attachment to Sharepoint Using Create File

Here is what I am trying to do:-
I want to create a work item in Azure DevOps when an email arrives in my inbox. If the email has an attachment, I want to save that attachment in the SharePoint site folder, retrieve the link of the created file, and update the work item description with the file link.
I have created the flow but when testing, here is what the exception is coming
I am sending this email from Gmail to my organization account. I have researched this problem in existing threads at the Power Automate community as well, but nothing seems to be fit as a potential solution to this problem. Your help in this regarding is highly appreciated.
Thanks.
I resolved this issue by creating a new flow, in this case, please make sure, you are updating the configuration of outlook email to say "Include Attachments" - "yes".
Please refer to screenshot below
If you will not include it, it will be treated as null, when you will be trying to create a file at SharePoint using power automate.
Hope this helps everyone.
Thanks,
Bee

Saving document to server in Java

We have an existing web application written in Java. We want to give our users the ability to open a Word document that is stored in our application on the server. So when the user downloads the document from our server, Word pops up and they then can edit this document on the client. Once finished editing the document we would like to give them the ability to save this document automatically back to the server where they retrieved it, by simply selecting on the Word Save icon. Similar to how SharePoint does it.
Seems to me SharePoint would be a good solution for this and they do it very well, but unfortunately we cannot use SharePoint in our architecture.
There also seems to be a lot of server-side possibilities that we can use to upload and open word documents from our server, I feel we can solve these use cases easily.
My big problem is the automatic saving of an edited document by the client back to our server where the document was downloaded
I am not Microsoft proficient to know what the best solution would be.
Should we write a Word AddIn to save to our server?
How do we get the Word AddIn into our users desktops?
Can we embed a Word AddIn into the Word document that is opened on the client?
1.Should we write a Word AddIn to save to our server?
If you don't want to use SharePoint you can develop an add-in where you can implement all the required functionality and much more.
2.How do we get the Word AddIn into our users desktops?
You can develop an installer for the add-in. See Deploying an Office Solution for more information. Also you can use the group policy objects for deploying the software automatically.
3.Can we embed a Word AddIn into the Word document that is opened on the client?
You can develop a document-level add-in, i.e. the code will be run for a specific document only. But you will need to install it as an application level add-in. See Architecture of Document-Level Customizations for more information.

Is it possible to record the open emails in Outlook 2010 with PowerShell so that they can be opened again later?

This question is very similar to https://stackoverflow.com/questions/6839516/outlook-2010-reopen-messages which was closed as not being a question.
I have a bad habit of keeping emails open in Outlook 2010 as a reminder of what needs to be done during the day since I am constantly interrupted. What I would like to do is use PowerShell to get a list of the open emails so that if I need to close Outlook I know what I was working on before.
I am not worried about Outlook crashing, Outlook normally reopens all of the emails I had been working on automatically; the use case I am dealing with is when I have to manually close Outlook for a patch or to address some other issue.
What I would like to do is query the running Outlook process and see what messages are open; opening a new Outlook process via COM won't work since it would have a different list of open messages.
Does anyone know of a way to do this in PowerShell? I can use another language if needed, but have been attempting to standardize on PowerShell where possible so that other people here can reuse any code I write.
One possibility I have considered is to launch Outlook via PowerShell so that I have a way to interact with the running process.
First of all, you need to get a reference to the running Outlook instance.
$outlook = [System.Runtime.InteropServices.Marshal]::GetActiveObject('Outlook.Application')
Using the application object you then
Iterate through the outlook.Inspectors collection
Ask each individual Inspector for its CurrentItem
Store whatever properties you need from this item (date? subject? entry id?)

How to send a custom email with an attached report based on variables with MS Access? 2003 or 2007

I would need to send an email with standard text (but some custom parts like names and dates) with an attached pdf report generated with ms access. I prefer a solution for access 2003, but if it works on 2007 it's fine too.
Can be done directly from ms-access or I need some other apps/work?
thanks ;)
There are several articles that might come in handy to help you with this.
Creating PDF files from within Access
http://www.granite.ab.ca/access/pdffiles.htm
Report To PDF
http://www.lebans.com/reporttopdf.htm
Using Automation to Send a Microsoft Outlook Message
http://support.microsoft.com/?kbid=161088

Attaching files to an already open mail through VB.Net

I have a problem. I already have an outlook new mail message open. I need to programmatically attach files to the e-mail which is already open using vb.net. This is for a windows application. How could i do it? any ideas? please help!
The article here sounds specific to Outlook 2007 and VBA/Visual Basic, but is equally applicable to any Windows Application that wants to automate Outlook:
Automating Outlook from a Visual Basic Application [Outlook 2007 Developer Reference]:
http://msdn.microsoft.com/en-us/library/bb206737(office.12).aspx
Keep in mind the Caution disclaimer at the bottom over this "non-trusted" approach.
Once you're "in", you get get a handle to the active item via Application.ActiveInspector.CurrentItem. Then use MailItem.Attachments.Add.
You also need to keep this in mind:
Application Shutdown Changes in Outlook 2007 SP2:
http://msdn.microsoft.com/en-us/library/dd239276(office.12).aspx#ol2007AppLifecycle_ImpactforSolutions