j2me powerpoint application - java-me

I want to create a simple mobile application which can give a slideshow from a Microsoft PowerPoint (PPT) file and has basic text editing functions....
Is there any API that I can use? How can I do ths?

AFAIK there's no public API for this purpose.
Use PowerPoint file format description to implement your own rendering engine for PowerPoint files on J2ME platform.

Related

Make a web requsted or post, to external URL for data

Is it possible to make web requests to an external url to grab data or post data to?
This way you can easily get data from external API's.
Here's the document to doing web requests in Office Scripts
https://learn.microsoft.com/en-us/office/dev/add-ins/excel/custom-functions-web-reqs?view=word-js-preview
Please note that there is JavaScript for Office Add-ins (https://learn.microsoft.com/en-us/office/dev/add-ins/?view=word-js-preview) and should be tagged #office-js.
This type of JavaScript can be used in different Office applications (web and desktop) to create add-ins that will work in both web apps and desktop applications.
This Office JavaScript API can be explored using Script Lab.
The tag #Office-Scripts reference Office Scripts for Excel on the web (https://learn.microsoft.com/en-us/office/dev/scripts/) which is also in preview and currently only available in Excel on the Web.
It can be enabled from the Admin portal of Microsoft365 (Formerly Office 365) under Settings/Settings and appears in Excel on the Web as a new tab called Automation.
It gives users the possibility to record macros and create scripts via the Office Scripts editor pane. Office-Scripts for Excel on the Web uses TypeScript. It is more limited in its scope than Office Add-in JavaScript.
So, to answer the question with regards to Office-Scripts for Excel on the Web, and as stated in the documentation, it is currently not possible to reference external API.
Read more here: https://learn.microsoft.com/en-us/office/dev/scripts/resources/add-ins-differences

C# based excel-functions within Office.js javascript API possible?

I'm currently developing a tool using the Office javascript API. However, I would like to provide an own Excel function (something like =SUM(A1:A5)), which is based on code in C#.
Is there any way to avoid shipping two individual plug-ins from the users point of view? Can I combine both technologies to one plug-in?
If you are only targeting the desktop version of Excel then you can create a VSTO add-in instead of a JavaScript-based add-in. Within this adding you can include the code for your custom functions in the VSTO project and make sure they are correctly registered. One solution could be to create your own MSI-based installer, e.g. using Windows Installer XML (WIX) or Nullsoft's NSIS tool.
With this "classic" VSTO add-in technology you won't be able to target Excel on Mac, on mobile platforms or Excel Online in the browser though.
Yes there is also an alternative solution to creating a desktop C# add-in with VSTO or ExcelDNA as suggested by Dirk.
A javascript web add-in is just a web page with a library : office.js filling the gap between your logic and the office host application.
Why not passing the input to an API written in C# (this can be or not the same server serving the add-in) that will do the calculation ? The javascript will be there only to pass data and set the calculation results in spreadsheet.
I use ILMerge to combine my dlls. You can add it as a post build command so that they are merged on successful build.

How to change the Excel Online data programming

I want to be able to edit Excel file on Mobile device currently, we upload the excel file and display the file on Excel Online in WebView, but it seems that only iPad can edit it online, but not iPhone or Android phone.
I have tried to use SharePoint online, but I found that it only can edit data but cannot save data on server. Meanwhile it looks not pretty as Excel Online.
We just want to use Excel online and find a way to modify data programmatically from the application code like via rest or javascript injection.

How to Read a word document in asp.net in mvc

can any one help me to find out the solution to show/Read the word
documents in asp.net mvc any example or any suitable links. searched a lot on internet for suitable
article but did not find any thing helpful. i have implemented the
download functionality of the document. but can not able to read or
preview the documents.
You could use the Office Web Viewer provided as a service from Microsoft .
What is the Office Web Viewer?
It’s a service that creates Office Web Viewer links. Office Web Viewer links open Word, PowerPoint or Excel files in the browser that would otherwise be downloaded. You can easily turn a download link into an Office Web Viewer link to use in your website or blog (e.g., recipes, photo slide show, a menu, or a budget template).
Office Web Viewer: View Office documents in a browser
Some benefits of the Office Web Viewer include:
You don’t need to convert Office files for the web (e.g., PDF, HTML).
Anyone can view Office files from your website or blog, even if they
don’t have Office.
It keeps eyes on your website or blog, because readers don’t need to
download the file and they stay in the browser.
One link will work for computers, tablets, and mobile phones.
To manipulate .docx files (as well as .xlsx, .pptx, etc.) you would use Open XML SDK (also available as installer from Microsoft download centre).
The PowerTools for Open XML, which greatly simplifies working with Open XML SDK, contains functionality for
High-fidelity conversion of DOCX to HTML/CSS using HtmlConverter.cs
I've only used this SDK and Powertools to manipulate Word documents, so could not say much about conversion to HTML/CSS. But this could be one of your options for previewing Word documents, although it is a complicated way of solving your problem.
Try the MVC viewer in Gnostice XtremeDocumentStudio .NET.
ASP.NET MVC document viewer using ASPX and Razor engines.
DISCLAIMER: I work for this company.

Is there a library that takes Microsoft Office files (Word/Excel/ppt) and renders images of them?

I'm building a webapp, and I need the ability for users to view Word/Excel/PPT files in the browser (these files are stored server-side). This is to offer them a quick way to preview the document without needing to download it and launch Microsoft Office.
Pretty much looking for the "View" feature for email attachments in Gmail. I'm assuming that Google is somehow rendering the doc formats into images and displaying them in the browser.
Is there a way to do this in OpenOffice?
I do not know whether you can do this with OpenOffice, but SpreadsheetGear for .NET will let you open an Excel workbook and get an image from ranges of cells or charts.
You can see some examples of this here.
Disclaimer: I own SpreadsheetGear LLC
Here is a way to do generate images of office files, doing all of the processing on your server:
On server-side, run OpenOffice in server mode (no UI, just the API is callable).
Call the OpenOffice API to translate any office file to PDF (See how the open source software Alfresco does this).
Then convert PDF to PNG using ImageMagick.

Resources