Attīriet XLS failus, izmantojot C# un regulārās izteiksmes .NET galvenajās lietotnēs

Atrodiet un noņemiet sensitīvu informāciju no Office un OpenOffice dokumentiem, izklājlapām un prezentācijām, kā arī XLS operētājsistēmās Windows, Linux un macOS


Dokumenta teksta rediģēšana .NET API

Viens no formāta neatkarīgs interfeiss sensitīvas un klasificētas informācijas dezinficēšanai no PDF, Word, Excel, PowerPoint dokumentiem un attēliem, tostarp iespēja mainīt metadatus un noņemt komentārus. Izmantojot rīku GroupDocs.Redaction for .NET, varat rediģēt klasificēto informāciju un saglabāt rediģēto dokumentu mapē PDF, pārveidojot visas lapas rastra attēlos vai saglabāt dokumentu tā sākotnējā formātā turpmākai rediģēšanai.

Rediģēt tekstu no XLS, izmantojot regulārās izteiksmes, izmantojot C#

GroupDocs.Redaction ļauj .NET izstrādātājiem izmantot pilnu regulāro izteiksmju stiprumu, lai rediģētu XLS failu, veicot dažas vienkāršas darbības.

  • Izveidojiet klases Redactor gadījumu un ielādējiet XLS failu
  • Izveidojiet klases RegexRedaction gadījumu, lai atrastu un aizstātu tekstu
  • Izsauciet Redactor.Apply metodi ar RegexRedaction objektu

Sāciet darbu ar Redaction API

Instalējiet no komandrindas kā nuget install GroupDocs.Redaction vai izmantojot Visual Studio pakotņu pārvaldnieka konsoli ar Install-Package GroupDocs.Redaction. Varat arī iegūt bezsaistes MSI instalēšanas programmu vai DLL failā no downloads un manuāli atsaukties uz to savā projektā.

using (Redactor redactor = new Redactor(@"sample.xls"))
{
	redactor.Apply(new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", new ReplacementOptions(System.Drawing.Color.Blue)));
	redactor.Save();
}

XLS Lv Live Demo

Checkout the free online demo for XLS Lv.

No need to set up

No need to write any code

Just upload the source file

Get the download link

What is XLS File Format?

Files with XLS extension represent Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. File saved by Excel is known as Workbook where each workbook can have one or more worksheets. Data is stored and displayed to users in table format in worksheet and can span numeric values, text data, formulas, external data connections, images, and charts. Applications like Microsoft Excel lets you export workbook data to several different formats including PDF, CSV, XLSX, TXT, HTML, XPS, and several others. The XLS file format was replaced with a more open and structured format, XLSX, with the release of Microsoft Excel 2007. The latest versions still provide support for creating and reading XLS files, though XLSX is the first choice of use now.

Read More

Other Lv Options

CSV Lv

(Comma Seperated Values)

DOC Lv

(Microsoft Word Binary Format)

DOCM Lv

(Microsoft Word 2007 Marco File)

DOCX Lv

(Office 2007+ Word Document)

DOT Lv

(Microsoft Word Template Files)

DOTM Lv

(Microsoft Word 2007+ Template File)

DOTX Lv

(Microsoft Word Template File )

PDF Lv

(Portable Document Format)

POT Lv

(Microsoft PowerPoint Template Files)

POTM Lv

(Microsoft PowerPoint Template File)

PPS Lv

(PowerPoint Slide Show)

PPSM Lv

(Macro-enabled Slide Show)

PPSX Lv

(PowerPoint Slide Show)

PPT Lv

(Microsoft PowerPoint 97-2003)

PPTM Lv

(Macro-enabled Presentation File)

PPTX Lv

(Open XML presentation Format)

RTF Lv

(Rich Text Format)

XLSM Lv

(Macro-enabled Spreadsheet)

XLSX Lv

(Open XML Workbook)

XLT Lv

(Excel 97 - 2003 Template)

XLTM Lv

(Excel Macro-Enabled Template)

XLTX Lv

(Excel Template)

Back to top
 Latviešu