PowerPoint Web Add-In Ribbon Manipulation at Runtime - ribbon

I recently learned about the js api for web add-ins. I developed a C# VSTO PowerPoint add-in before. Since web apps are quite nicely portable, I thought giving it a try. However, I was using the Ribbon for some stuff and manipulated it easily with the Microsoft.Office.Tools.Ribbon functionality, like adding a login button:
// loginBtn
//
this.loginBtn.Label = "Login";
this.loginBtn.Name = "loginBtn";
this.loginBtn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.loginBtn_Click);
As I understand using the js api I won't get this kinda access to the ribbon. I can only configure the Manifest.xml once and never change it, or is there a way to achieve that?
Thanks for your help.

No there is no way to achieve that. All Ribbon UI on a Web Add-in needs to be declaratively defined upfront on the manifest.

Related

Google Workspace Add-ons: Building HTML interface possible?

lately I am trying to figure out how to create an Google Workspace Add On that is able to show an iFrame. I started checking out the documentations of Google Apps Script and Google Add Ons.
So far I know, that I need to use the Card Service of Google to build Add ons. Here is the link: https://developers.google.com/apps-script/reference/card-service
Actually, I just tried to figure out if any class or function of the Card Service can handle HTML Output or HTML file but ...
And so far I could figure out that you can build a bound script (only for Editor Add ons that is not in my interest) that is able to build HTML interfaces but I need this for standalone scripts that I can publish later as Add ons.
Also don't understand: Building a standalone script, why can I create HTML files when I am not able to use or display them?
After looong searching I would be glad if someone could enlight me ...
You have to use CardService for Workspace Add-ons.
Only Editor add-ons (and Web Apps) allow for building custom interfaces with HTML/CSS and client-side javascript. Moreover, if User-Privacy and Anti-Trust laws/legislation keep gaining traction(GDPR, CCPA, etc.), there's a good chance we'll lose even that, but I digress.
If you're looking for official documentation on the matter, see Restrictions
You can try making a web app on the same GCP project then add your web app link to a Card button that opens it up as an overlay
var webAppOverlay = CardService.newOpenLink()
.setOpenAs(CardService.OpenAs.OVERLAY)
.setUrl("Your web app link")
var textButton = CardService.newTextButton()
.setText("Web App")
.setOpenLink(webAppOverlay);
var card = CardService.newCardBuilder()
.addSection(CardService.newCardSection()
.addWidget(textButton)
.build();

Angular Html + Css = PDF , problem to generate a proper PDF

I'm developing a web application using .Net core 3.0 (Back-end) and Angular 8 (Front-end).
The user completes a form and then I have to generate a PDF (with design & picture) with the data that he put. The PDF needs to be in high quality.
I have tried several libraries in both Front-end & Back-end.
I need to use a free library.
I think it will be easier and better to do it in the Front-end because the user will need to print it (directly most of the time).
And also, in case of high traffic generate it from the back-end will use too many resources.
Also, "print" the html page is not an option.
I've tried :
PdfMake,
kendo-angular-pdf-export,
Jspdf,
wkhtml,
and others...
The best ones:
Kendo UI
It was really the best one, easy to implement and doing exactly what I needed. But is not free and one license is like 900e/user
pdfMake
The problem with that was that I will have to do all the design with the library-style, So I will have some limitations.
I would like to be able to generate a pdf from an HTML page including the CSS.
I'm blocked with that pdf generation.
Did someone succeed to generate a proper pdf with a good design with pdfMake?
Thanks a lot in advance.
A solution I've used is to create a service which, on the back end, generates the HTML and uses headless Chrome to render the PDF. Stream that back to the client browser.

SSRS report viewer for HTML5

We are using a web application in html5 and I want to integrate the developed ssrs reports into it. I want to create a report viewer for displaying the reports in my web application. I do not want to use .aspx page or any mvc page. I want the report viewer in html5.
Thanks in advance
Correct me if I'm wrong, but it sounds to me as if you are requesting that Microsoft add a .NET library or some "embeddable control" that you can put into an html5 project. Currently, I do not believe that there is a control for displaying the reports in html5 as you are requesting. You must use a work around as suggested by Coder of Code.
You can also look to these threads which basically say the same thing:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/7613447b-3590-4494-a94a-498af49f85dc/does-ssrs-2012-support-html5-and-dynamic-position
If you are just trying to show the HTML render of a report and you want it to look like a native object to the application without any parameters or toolbar, then you could call the URL for the report directly and include "&rc:Toolbar=false" in the URL. This will hide the toolbar for the Report Viewer control. This method is described under the URL Access Parameter Reference msdn article. Not exactly what you asked for, but it may achieve the purpose.
You can use the Reporting server's URL for your report as it returns the data in the HTML format and show that that in the IFrame in HTML. I never did it but this approach can work by setting the Iframes URL as the reporting servers URL which will be something like this,
http://ServerName/ReportServer?%2fSome+Folder%2fSome+Report+Name&rs:Command=Render&rc:Toolbar=false&rc:HTMLFragment=true

Display PowerPoint presentation within a Windows Store App

Is there any way to read and view a PowerPoint presentation within a Windows Store App?
What I want to achieve is to open the .pptx file from the computer and display the slides inside the app. Basically, it would be like a PowerPoint viewer.
What I figured out with extensive searching is I can use Aspose.Slides API to convert the slides to images and then display them to the user. But firstly, Aspose.Slides is not available for WinRT and secondly, it is not free. The OOXML is really complicated and I can't find an approach to achieve this via OOXML. What could be a work around to the problem? And can there be a way to manipulate the slides?
I haven't seen a WinRT API for PowerPoint, but if you found one for .NET you could easily write a web service that would take a ppt or pptx and use the API to convert it to images or something else that you can display.
If you have some control over the presentations - you might also consider saving them as XPS which is WPF/XAML based format, but even then you would need to do some more work to process it to a XAML format compatible with WinRT/XAML and might still have some problems loading custom embedded fonts etc.

Salesforce.com - Visualforce and ActiveX

I have a Visualforce page through which I am trying to access a SDK. It is done using ActiveX control. The VB + JS script that I have runs fine when it is a normal HTML page residing on my desktop. However the same code when incorporated in Visualforce does not work. Does running ActiveX control require uploading any kind of files to Static Resource? My code need not be a Visualforce. If there is any other way I could integrate ActiveX with Salesforce, even that would be fine.
Thanks in Advance.
If you need somewhere to host the .cab (or .ocx) file, then you can put that in a static resource, and reference that from your VF code.
What browser are you using to test? If IE6 it may need you to enable the ActiveX controls.
If you go to Tools->Internet Options->Security Tab. Click ‘Custom’ and OK any message. Then scroll down to ‘Script Active X Controls ….’. This should be enabled.'