GroupDocs.Editor for Java API انتخاب مناسبی برای ویرایش اسناد و ارائههای Microsoft Word، Excel، PowerPoint، Open Office است. GroupDocs.Editor یک API مستقل است که برای سیستمهای سمت سرور و سیستمهای بکاند که در آن به کارایی بالا نیاز است، مناسب است. به هیچ نرم افزاری مانند Microsoft یا Open Office بستگی ندارد.
GroupDocs.Editor for Java روشی آسان و ساده را برای توسعه دهندگان فراهم میکند تا فایلهای CSV را با استفاده از چند خط کد ویرایش کنند.
یک ویرایش اولیه سند با APIهای GroupDocs.Editor for Java را می توان با اجرای چند مرحله آسان انجام داد. API های ما در تمام سیستم عامل ها و سیستم عامل های اصلی پشتیبانی می شوند. قبل از اجرای کد زیر، لطفاً مطمئن شوید که پیش نیازهای زیر را روی سیستم خود نصب کرده اید.
// Load the CSV file into Editor with no extra loading options
Editor editor = new Editor("source.csv");
// Create edit options for delimited text and specify a mandatory separator in the constructor
DelimitedTextEditOptions editOptions = new DelimitedTextEditOptions(",");
// Open input CSV document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);
// Grab CSV document content and associated resources from editable document
string content = beforeEdit.getContent();
// Send the content to WYSIWYG-editor, edit it there, and send edited content back to the server-side
// This step simulates a such operation
string updatedContent = content.replace("Cell Text", "Edited Cell Text");
// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedContent, null);
// Create save options for delimited text and specify a mandatory separator in the constructor
DelimitedTextSaveOptions saveOptions = new DelimitedTextSaveOptions(",");
// Save edited CSV document to the file
editor.save(afterEdit, "edited.csv", saveOptions);
CSV را همین الان با بازدید از وب سایت GroupDocs.Editor Live Demos ویرایش کنید. نسخه ی نمایشی زنده دارای مزایای زیر است
نیازی به بارگیری API نیست
نیازی به نوشتن کد نیست
فقط پرونده منبع را بارگذاری کنید
برای ذخیره پرونده لینک بارگیری کنید
همچنین می توانید سایر فرمت های فایل را ویرایش کنید. لطفا لیست کامل زیر را ببینید.
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template File )
(Microsoft Excel Spreadsheet (Legacy))
(Open XML Workbook)
(Macro-enabled Spreadsheet)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(Macro-enabled Presentation File)
(Open Ebook Format)
(Open eBook File)
(Hyper Text Markup Language)
(Web Page Archive Format)
(Text Document)
(XML File)
(Tab Seperated Values)
(Rich Text Format)
(OpenDocument Text File Format)
(Outlook Message Item File)