Sending as Access Report via e-mail, but with other attachments - ms-access

I am aware that within Access you can send a report as an e-mail attachment with
DoCmd.SendObject
However, all the text I have read says you cannot add attachments (other than the report you are adding). So there is another set of web articles which go on to describe how to use vba to send an outlook e-mail message.
The report is a letter, and the other attachments I need to add are pdf's with maps in them, selecting which pdf depends on some other criteria.
I am thinking about enhancing the report to have the other attachments in the report, but I think that could be more trouble, so my ideal would be to avoid that if I can. The question is can I?

You could save the report as a PDF using this code:
Save Report as PDF File
Then use the Outlook VBA code you have to send the report along with the other files you need to send.
If you need specific help writing the code, please update your question with more details such as file location, Office version, what code you were planning to use, etc.

Related

how to attach ssrs report to an email in D365fo

so I am looking for an approach to attach an SSRS report (in pdf format) to an email once a batch job gets completed. I want the report to get attached to the email without downloading the pdf report. someone suggested to look up report reference but couldn't find anything
I believe the PDF generated by SSRS is temporarily stored on the built-in Blob Storage of D365. This Blob storage is not directly accessible, so sharing a link to a customer via e-mail is not the recommended solution. I believe the solution directions are either to download the PDF to be able to attach it to the e-mail, or copy the PDF from the built-in Blob storage towards another Blob Storage (or SharePoint 365) and share the link in the e-mail.

Is there a way to automate saving a PDF version of an HTML formatted report whenever it is viewed in the browser?

I am working with SQL Server and C# to create individual employee reports. I am using HTML and CSS to format the reports and display in a browser. The customer also wants a printout of every report. I would like to have a formatted PDF version of the report automatically saved to a folder on the server whenever a report is viewed in the browser. I could create a process to print all of the PDF pages at one time.
With regards to the generation of the PDF, as it happens I had to do something similar a couple of years ago.
I was generating HTML reports from C# that I needed to convert to PDF.
There is a nuget package named OpenHtmlToPdf that uses wkhtmlopdf to convert HTML to PDF.
At the time I also wrote a bit of blurb on this subject on my blog here!
For your scenario, when the customer requests a report, on the server side you could generate the html as you are now. Then you could use OpenHtmlToPdf to additionally generate a PDF version on the server at the same time.
All you would then need to work out is how to get the PDF link address to the user (email, web link, etc)

Is there a way to globally change all the hyperlinks in all reports on a report server on SSRS?

We've just had one of our systems moved to a new server, along with 3600+ SSRS reports. All these reports contain hyperlinks. Unfortunately, none of these hyperlinks have been updated to point to the new server, and so are still opening items on the old server.
Instead of having to edit each hyperlink in each report, is there a way I can globally update the reports at the same time so that the hyperlinks point to the new server?
I thought running an update on the content field in the catalog table might do the job but apparently not from what I've been able to gather online.
Thank you for any help you can give.
Yep, normally it would be better to store your hyperlinks in a dataset.
I dont think you can do that globally, because your hyperlink is embedded in your report.
You can open your report .rdl file in text editor. In the text editor you can search for your hyperlink and replace it with the new value (search & replace). Well this still has to be done per hand for each report.
On top, you can write a small program in C#, .NET, etc... in which you pass your old and new hyperlink (single or as datatable). The program basically, opens all the .rdl reports and apply the search & replace then close and safe it.

How to import emails into ms access and save their attachment to a network drive which can be referenced by access

I am attempting to set up a way to take invoices that are emailed to me and import them into MS Access so that I can track completion of payment and vouchering and at a later time set up a better system for accounts payable.
I have been researching how to go about linking outlook and access for this purpose but I don't actually get the attachment when I link a folder with my database. I have found people suggesting that I don't actually save the file to access because it will bloat the database and instead just save the file location.
Unfortunately I haven't been able to find information about how to actually go about this process. Right now I have rules set up in Outlook to sort the invoices I receive by vendor, which I could then link to access. But there is no information regarding the attachment except that it has one.
Any pointing in the right direction would be greatly appreciated, I get the feeling that a lot of this will need to be done in outlook somehow, but I don't really know where to begin with it.
I can figure out how to save the attachments to a folder, but the thing I can't figure out is how to link outlook and access so that access can have a hyperlink to where the attachment is saved.

Download an HTML file so that it opens in an email client (e.g. MS Outlook)

I'm struggling to find an answer to what I thought would be a relatively straightforward problem, and wondered if anyone could help:
It is to find a way of allowing users to open downloaded HTML files in an email client such as MS Outlook (without having to save them first).
We have a Web-based application that allows users to upload files, including emails. To do this, they need to save the email onto their network, and then upload the saved file via the browser's 'file select' control. The files are saved in an Oracle database, and we have a utility that allows the user to later download the saved email. When they do so, they are given the option to 'Open' or 'Save'.
When the email was saved using the .msg format, opening the downloaded email opens that email in Outlook, and all the usual email functionality is available. However, if the email is saved in HTML, selecting 'open' always loads the email content into the browser.
Is there a way of invoking Outlook when the user opens an HTML file from the Web app, so that they don't have to either 1) always save their emails as .msg files or 2) download the email to the network and use 'open with' to open it in Outlook?
The download utility allows us to set the MIME type, but application/vnd.ms-outlook (and the various email-related types) have no effect; so that an HTML email always opens in the browser.
We have also tried changing the filename extension to '.msg', but this results in an Outlook error message and the email does not open. Removing the file extension altogether means that the file still opens in the browser.
Changing the HTM/HTML file associations so that they open with Outlook is not an option for us, I'm afraid.
Does anyone know of a solution to this? Although the problem as I've described it isn't such a big deal for our users, we were hoping to generate draft emails programmatically for users to edit and send, but without the ability to open an HTML file in Outlook, this is going to be a lot trickier than we'd hoped.
Our main network browser is still IE7, incidentally.
Many thanks for your help with this.
Outlook does not handle HTML files at all. It needs to either be MSG or EML file.
For the latter option, it is easy enough to create a dummy EML file with an HTML MIME part that represents your HTML data.
The file extension would have to be set to .msg, and the file would have to be rewritten in this format as well. You can see the technical specifications for this format here: http://msdn.microsoft.com/en-us/library/cc463912%28v=exchg.80%29.aspx