none
Sharing Content App built Visualization in Excel via email and social media RRS feed

  • Question

  • Hi,

    We are looking for office.js tool we can use to share a visualization, created within a Content App in Excel. Currently, the Content App has a function called "Save As Image". We would then want to share that Content App visualization through Email, and Social Media. Is the a function within Office.js we can use and how can we do it?

    Thanks

    Monday, January 26, 2015 10:07 AM

Answers

  • Can you please show an example (website/ image link or something else) or explain more detailed what you mean?

    Do you just want to send an image via mail?

    If yes, you have multiple possibilities:

    1. Insert a link as text in the mail (https://msdn.microsoft.com/en-us/library/office/dn574748(v=office.15).aspx)

    2. Insert image as HTML content (<img>-Tag) in the mail (https://msdn.microsoft.com/en-us/library/office/dn574748(v=office.15).aspx)

    3. Add image as attachement (https://msdn.microsoft.com/EN-US/library/office/dn568061(v=office.15).aspx)

    Recently I experienced some issues with option 2. Due to a sanitization process outlook seems to modify the html code I inserted which leads to problems (see this thread: HTML for body in Outlook Mail App is modified on insert).

    Monday, January 26, 2015 2:47 PM

All replies

  • Hi,

    there is no such function in the Office (!) API. It is not the task of the Office API to interact with social media services. The office api is just for accessing Office functionalities. If you want to share content via social media you need to access the services of the specific social media network.


    Monday, January 26, 2015 12:07 PM
  • Hi,

    Thanks for your useful reply. What about email? Same way normal Office does when you share, cant we do it for our Content Apps?

    Regards

    Monday, January 26, 2015 2:19 PM
  • Can you please show an example (website/ image link or something else) or explain more detailed what you mean?

    Do you just want to send an image via mail?

    If yes, you have multiple possibilities:

    1. Insert a link as text in the mail (https://msdn.microsoft.com/en-us/library/office/dn574748(v=office.15).aspx)

    2. Insert image as HTML content (<img>-Tag) in the mail (https://msdn.microsoft.com/en-us/library/office/dn574748(v=office.15).aspx)

    3. Add image as attachement (https://msdn.microsoft.com/EN-US/library/office/dn568061(v=office.15).aspx)

    Recently I experienced some issues with option 2. Due to a sanitization process outlook seems to modify the html code I inserted which leads to problems (see this thread: HTML for body in Outlook Mail App is modified on insert).

    Monday, January 26, 2015 2:47 PM