This article briefly explains the specifics of RadSpreadStreamProcessing - what is spread streaming, how it works compared to the RadSpreadProcessing library and when to use it.

Telerik UI for Xamarin Ninja image

The SpreadStreamProcessing is part of Telerik UI for Xamarin, a professional grade UI component library for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

RadSpreadStreamProcessing is part of the Telerik Document Processing libraries. The full documentation for this component is available at https://docs.telerik.com/devtools/document-processing/libraries/radspreadstreamsprocessing.

SpreadStreamProcessing Fast Export image

What is Spread Streaming?

Spread streaming is a document processing paradigm that allows you to create big spreadsheet documents with great performance and minimal memory footprint.

The key for the memory efficiency is that the spread streaming library writes the spreadsheet content directly to a stream without creating and preserving the spreadsheet document model in memory. Each time an exporter object is disposed, the set values are written into the stream. This allows you to create large documents with an excellent performance.

Key Features

Some of the features you can take advantage of are:

RadSpreadStreamProcessing vs. RadSpreadProcessing

There are two main differences between the libraries.

  • RadSpreadStreamProcessing can be used only to create documents and append data to existing ones. On the other hand you can use the RadSpreadProcessing also for reading and modifying the content of documents.
  • RadSpreadStreamProcessing writes directly into a stream, unlike RadSpreadProcessing which creates models for the elements in the document. This is why the memory used with the spread streaming library is significantly lower than when using RadSpreadProcessing.

When to Use RadSpreadStreamProcessing

You can use RadSpreadStreamProcessing to create and export large amount of data with a low memory footprint and great performance.

Required references

You have two options to add the required Telerik references to your Xamarin.Forms app in order to use RadSpreadStreamProcessing:

If you don't want to add the all Telerik.UI.for.Xamarin nuget package, you have the option to add a separate nuget package. For RadSpreadStreamProcessing you have to install the Telerik.Zip and Telerik.Documents.SpreadsheetStreaming nuget packages.

  • Add the references to Telerik assemblies manually, check the list below with the required assemblies for RadSpreadStreamProcessing:

    • Telerik.Zip.dll
    • Telerik.Documents.SpreadsheetStreaming.dll

    Please keep in mind these assemblies are located in the Portable folder, still, you need to add a reference to them in the Xamarin.Forms project as well as in each of the platform projects (Android | iOS | UWP).

In this article