Import Word document into Jodit - jodit

I made a custom button that uses MammothJS to import a Word document and convert to HTML for Jodit. However, the output is not as good as the native copy/paste functionality of Jodit. Does anyone have a better implementation for importing a Word document into Jodit? Preferably using the native PasteFromWord plugin? https://xdsoft.net/jodit/docs/classes/plugins_clipboard_paste_from_word.PasteFromWord.html

Related

How to Import Programatically a file or an XML string in Acumatica that supports import XML

I just wanted to know if this is possible via code, I think of as a post-installation of my customization which needs some imported XML that cannot be included in the Customization Project objects. I looked up on Customization Code Plug-in, this is the solution but I do not know where to start to manipulate the File Upload or Import an XML then I pass a string variable to make it readable for the screen to accept the Import XML and just save the data.
Thanks!
I would consider just including in customization necessary xml staff, as file. Then in Customization plugin just read from that xml, and persist it wherever needed in db.

CakePHP 2.1 excel file export and import to database

I am using cakephp 2.1 and developing an application which needed more data. I want to use excel file for import and export. Please suggest me some solutions to get it done.
Use Microsoft's "CSV for Excel" for importing data. It's the same as a generic CSV but then with different delimiters. If you want to create complex Excel sheets, then you should use something like PHPExcell.
The -1 on your question is for asking it wrongly. A quick Google Search would yield the same result as me typing this in...

Flexible customization - Generating word document using C#

Problem - Generate a word document from information retrieved from database.
My solution - Create a word document template add fields/tags in places where values need to be inserted. The template will require tables and charts as well. Using document reflector that comes with open office xml sdk reflect on the document template and extract the w:document section and port it to C#. The rest of the logic revolves simply around finding the fields/tags, replacing them, etc. Very simple approach but not very flexible!
Challenge - I want the user to have the ability to customize the template or the generated document output. But this will not be possible if I embed the template logic in code.
Any other possibilities - I looked around at Templating using T4 and RazorEngine but could not find any concrete examples of how to create word documents using these two technologies.
Now what is the best approach?
I would really appreciate your inputs on what is the best and most flexible way to generate word documents using C#.
I'm actually working a project where the business users are designing word template with mail merge fields and we are populating the values using a 3rd party software package Aspose Words. http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
The software includes a library for merging data from datatables into the mail merge fields in the word document.
I also wrote a customized word task pane add in that retrieves data views from the database and lists the fields in a drag/drop interface that mimics a crystal or sql report writing interface.
Probably would of been easier to just use crystal or sql reporting though...
It's certainly possible to generate the contents of an Office doc using T4 or Razor and then package it up. The TestScribe powertool for Visual Studio Test Manager does just that with T4. There is a thread by Sally Cavanagh in the Q&A on this page http://visualstudiogallery.msdn.microsoft.com/e79e4a0f-f670-47c2-9b8a-3b6f664bf4ae that suggests a way to look at the T4 templates that it uses, which might get you jump-started.
Here is sample to play word document template with C#
You could use a content control databinding approach.
XML Mapping Task Pane for Word 2007/2010 is an authoring tool.
To create an instance document, you just attach your XML data file.
If the resulting documents will be opened in Word, that is all that is required: Word will bind the data itself. If your consuming application is not Word, you might want to resolve the bindings yourself (eg via Open XML SDK).
Content control databinding isn't intended to support repeats and conditionals. For a way to do that, look at my OpenDoPE convention
Take a look at Templater. Disclamer: I'm the author.
Check out JODReports or Docmosis. They are Java based but some of the templating features and output options might be ideal. You can call the command line interfaces unless they also have something better to reach from C#.

Expression Engine - import member data

I am finishing a site for a client and they want to import their customer database. Is there an effective way to import such data? I have used AJW Datagrab for importing data, but this is different.
Any suggestions?
I noticed that EE has an xml import template is there a handy way to convert a spreadsheet to an xml file that would fit that format?
Thanks.
ExpressionEngine 1.x used to come bundled with three native first-party Import Utilities:
pMachine Pro Import Utility
Movable Type Import Utility
Member Import Utility
With the rewrite of ExpressionEngine 2.x, only the following made the conversion:
Member Import Utility
You can access it within the Control Panel at: CP Home > Tools > Utilities > Import Utilities.
The first-party Member Import Utility allows you to import members from other systems into ExpressionEngine, in the following two formats:
Import from XML File - Allows you to import members from an XML file
in ExpressionEngine's Member XML format.
Convert Delimited Text to XML - Allows you to create an
ExpressionEngine Member XML file from another application's delimited
text file.
If you're looking to import more than just Members into your ExpressionEngine database, DataGrab by Andrew Weaver of Brand New Box in the UK is your best choice.
DataGrab allows you to import data from RSS/ATOM feeds, CSV files and XML files. Other datatypes can be added.
Among DataGrab's many uses are:
Importing initial content into ExpressionEngine from other CMS's (WordPress, Tumblr, etc.)
Aggregating data from your various websites from around the
internet, such as Twitter or Flickr (using RSS feeds or APIs)
Keeping product stock or price details synchronised with an external
system
You can also harness EE's powerful, built-in functionality (flexible templating, search, archives), DataGrab makes your data easily available as a channel entry.
The developer of DataGrab provides a walk thru on using CSV imports with DataGrab, perfect for use with Excel documents or a Google Docs Spreadsheets.
Surprisingly, the once-popular Solspace Importer still hasn't made the conversion to EE2.
A bit late, but for the record Solspace Importer is now ee2.x compatible. The big advantage over DataGrab is Importer's ability to call with JSON.

How do I import an Excel Spreadsheet into a blog..?

We are interested in trying to import an Excel spreadsheet into our Blog.
A sample of the Excel spreadsheet that we generate each day and want to export into our Blog is located at:
http://www.wallstreetsignals.com/WhatsWorking.html
Our Blog is located at:
http://whatsworkinginthestockmarket.blogspot.com/
We are interested in a program or method that would allow us to just import the Excel spreadsheet into our Blog instead of having to hand input all the data, which is what we are doing now.
Thank you for your thoughts and the cost to have you help accomplish our goal.
Philip
WallStreetSignals.com
Well, outside of creating a program (which is possible, using PHP, Perl, Java, etc and either an excel input module or converting to CSV or XML and processing that)...
Have you considered using Google Documents or another online spreadsheet software? It's easy to import an excel spreadsheet, and then embed the spreadsheet in the blog post or webpage. Then if you need to change it, modify the google document spreadsheet and the changes are rendered on the webpage or blog post immediately.
-Adam
The easiest thing might be to use Google Docs. Upload your spreadsheet, then publish from Google Docs to your blog. See this article.
Can your blog consume XML? You can set up an XML Schema in Excel 2007 and just export it to an XML file. You would need to write an XSLT.
I also have a macro that will write out XML to a file... can upload that if it would help...
If your spreadsheet is generated by a macro, you could just modify a macro to generate html or some other sort of blog markup ready for copy and paste.
Excel can save as HTML, which you could then strip the metadata from and use in your website. Unfortunately the HTML that it generates is very bloated. If you do not mind client lock-in, you could consider embedding the XLS file directly on your website, and having your viewers use the IE embedded excel viewer.
If you can use ASP.NET you could use SpreadsheetGear for .NET to load an Excel workbook, grab values, formatted values or even images to display on a web page. There are live ASP.NET samples with source if you want to check it out.
Disclaimer: I work for SpreadsheetGear LLC

Resources