Skip to content

Merge dpl-import-2943 into production #2953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion knowledge-base/editor-convert-to-plain-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To export to another format, use the corresponding namespace and format provider
private void ConvertValue(MouseEventArgs e)
{
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
RadFlowDocument document = htmlProvider.Import(HtmlValue);
RadFlowDocument document = htmlProvider.Import(HtmlValue, new TimeSpan(0, 0, 5));
TxtFormatProvider txtProvider = new TxtFormatProvider();
PlainTxtValue = txtProvider.Export(document);
}
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/grid-csv-export-change-field-delimiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ To change the field delimiter, do the following:
CsvFormatProvider formatProvider = new CsvFormatProvider();

//import the stream to a workbook
Workbook workbook = formatProvider.Import(CSVStream);
Workbook workbook = formatProvider.Import(CSVStream, new TimeSpan(0, 0, 5));

//create a new MemoryStream to export the modified workbook in
MemoryStream modifiedExport = new MemoryStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To customize the cell format of the exported file before it reaches the client,
XlsxFormatProvider formatProvider = new XlsxFormatProvider();

//import the stream to a workbook
Workbook workbook = formatProvider.Import(excelStream);
Workbook workbook = formatProvider.Import(excelStream, new TimeSpan(0, 0, 5));

//select a range of cells
CellSelection selection = workbook.Worksheets[0].Cells[0, 0, 0, 5];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ To format numeric and date cells of the exported file before it reaches the clie
CsvFormatProvider formatProvider = new CsvFormatProvider();

//import the stream to a workbook
Workbook workbook = formatProvider.Import(CSVStream);
Workbook workbook = formatProvider.Import(CSVStream, new TimeSpan(0, 0, 5));

//specify the desired formats

Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/pdfviewer-sign-pdfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The PdfViewer does not currently have the capability to manage digital signature

// **** PHASE 3 - IMPORT DOCUMENT and insert signature field **** //

var document = new PdfFormatProvider().Import(unsignedDocumentBytes);
var document = new PdfFormatProvider().Import(unsignedDocumentBytes, new TimeSpan(0, 0, 5));

// This demo adds a new page and adding a new signature field there. If your document already has a signature field, you can search for it instead.
RadFixedPage page = document.Pages.AddPage();
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/spreadsheet-get-cell-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ This KB article answers the following questions:
using MemoryStream ms = new MemoryStream(excelFileToRead);

IWorkbookFormatProvider formatProvider = new XlsxFormatProvider();
Workbook workbook = formatProvider.Import(ms);
Workbook workbook = formatProvider.Import(ms, new TimeSpan(0, 0, 5));
Worksheet worksheet = workbook.Worksheets.First();

CellRange cellRange = worksheet.UsedCellRange;
Expand Down