Intersoft WebGrid Documentation
ExportEventArgs Class
Members  Example  See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace : ExportEventArgs Class






Class that allows users to use their own exporting codes or module to handle exporting functionality.

Object Model

ExportEventArgs Class

Syntax

Visual Basic (Declaration) 
Public Class ExportEventArgs 
   Inherits BaseEventArgs
Visual Basic (Usage)Copy Code
Dim instance As ExportEventArgs
C# 
public class ExportEventArgs : BaseEventArgs 
Delphi 
public class ExportEventArgs = class(BaseEventArgs)
JScript 
public class ExportEventArgs extends BaseEventArgs
Managed Extensions for C++ 
public __gc class ExportEventArgs : public BaseEventArgs 
C++/CLI 
public ref class ExportEventArgs : public BaseEventArgs 

Example

 

The code below shows that you can export the text of a cell that uses WebValueList by specifying the EnableValueList property to True in ExportEvent.
C#Copy Code
private void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
{
         e.ReportInfo.EnableValueList = true;
}

Remarks

WebGrid.NET Enterprise allows you to use your own exporting codes or module to handle exporting functionality using the export event. When using your own custom exporting, you can skip the inclusion of built-in exporting runtime assemblies. That means WebGrid.NET assembly does not depend on the built-in exporting runtime assemblies on deployment time. This makes the WebGrid.NET totally independent, fully customizable and extensible.

Some enhancements of exporting event have been done on WebGrid.NET 5.0 Enterprise:

  • Added OutputType property to ReportInfo. The temporary report file name format is now set to use GUID by default. In previous version, the default value is ExecutionTime.
  • Reduced memory usage and fixed leaks. 
  • Exporting is now working properly without default printer installed. The error message like “Printer not Installed” or “PaperKind does not supported” has been completely eliminated.
  • Core engine has been rewritten for better performance.
  • Added CacheToDisk property to ReportInfo. This feature allows the exporting to write temporary cache to disk instead of using memory.
  • Added CacheToDiskLocation property to ReportInfo. You can customize the folder to store the cache. By default, you don’t have to set this property.
  • Improved exporting menu. The export types are now represented with icons.
  • Added exporting command to row/cell context menu. This allows you to easily perform exporting from your current mouse position in the Grid.

Inheritance Hierarchy

System.Object
   System.EventArgs
      ISNet.WebUI.WebGrid.BaseEventArgs
         ISNet.WebUI.WebGrid.ExportEventArgs

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.