Posts

Es werden Posts vom März, 2024 angezeigt.

Use pdfmake library in SPFx v1.18.2 projects

For my current customer project I needed to implement a SPFx based WebPart solution to fetch information from Office 365 via Graph API and to summarize the information in a PDF document. The customer does not want to have any server side code (e. g. serverless  AZURE function). This means I had to create the PDF on the client. For that purpose I used the library pdfmake in my SPFx React based App. To use the library in a SPFx project you should consider the bottom implementation to prevent errors like the following two possible pitfalls: Roboto-Regular (or any other) font not found in virtual file system Argument of type '{ pageSize: string; header: string; content: ({ text: string; style: string; table?: undefined; layout?: undefined; } | { style: string; table: { widths: any[]; headerRows: number; body: any[]; }; layout: { fillColor: (rowIndex: number) => string; }; text?: undefined; })[]; styles: { ...; }; }' is not assignable to parameter of type 'TDocumentDef

ASP.NET RAZOR: Multiple page methods for POST / GET & Ajax call - possible issues

Bild
In my current project I need a additional page method for POST requests beside the default page POST method. Actually I don't use any page POST methods because I use in the most of the times the WebAPI REST endpoints for all CRUD operations. But for the new requirement I need a POST method to send out an E-Mail message from a clientside call. For the client call I used jQuery and implemented the following code: $.ajax({   url: "/WebForm/FormData/SendMessage",   type: "POST",   contentType: "application/json; charset=utf-8",   data: options.data,   success: function (d) {...},   error: function (d) { ...} }); Page url: /WebForm/FormData In the page model class I added a new post method with the prefix "OnPost" to mark the method as POST-method: public async Task<JsonResult> OnPostSendMessage([FromBody] CloudFormMessageReply messageToSend) { ... } I thought everything is perfect in place and I tested my implementation but nothing happen

SharePoint Online: Festlegung der Startseite (*.aspx) für einen Bereich

Bild
Da ich des Öfteren gefragt wurde, wie die Startseite eines Bereiches (Website) geändert werden kann, habe ich diesen Vorgang in dem folgenden Video kurz erläutert. Die dafür notwendige Funktion befindet sich in der Seitenbibliothek und kann direkt über das Kontextmenü der gewünschten neuen (Start-/Home-) Seite - wie es auch der untere Screenshot zeigt - aufgerufen werden. Festlegung der Startseite Das Video zeigt die Schritte im Detail.

SharePoint Premium Features: Automatische Übersetzung von Dokumenten

Bild
Viele Unternehmen arbeiten oft länderübergreifend zusammen und oft liegen Dokumente in unterschiedlichen sprachlichen Varianten vor oder es müssen Inhalte schnell in anderen Sprachen zur Verfügung gestellt werden. Für diesen Zweck bietet sich eine (vorab) maschinelle Übersetzung der Inhalte an, um den Übersetzungsprozess zu beschleunigen. Die SharePoint Premium Dienste von Microsoft Syntex enthalten dazu die Funktion " Dokumentübersetzung ". Dieses Feature ermöglicht die sprachliche Übersetzung von Dokumenten in eine Vielzahl von Sprachen. Eine vollständige Liste aller unterstützten Sprache ist unter folgenden Link abrufbar:  Sprachunterstützung für den Übersetzer Als Eingabedateien werden derzeit die folgenden Dateitypen unterstützt: .csv, .docx, .htm, .html, Markdown, MD, .msg, .pdf, .pptx, .txt und .xlsx. Bei Legacydateitypen .doc, .rtf, .xls, .ods, .ppt und ODP wird die übersetzte Kopie im modernen Äquivalent (.docx, .xlsx oder .pptx) erstellt.  Das folgende Video zeigt d