Hi,UltraGridDocumentExporter1.Export(Me.ugvDataGrid, MyPath, DocumentExport.GridExportFileFormat.PDF) don't work when i put this line in a second thread .... why ?The thread procédure:Private Sub ThreadProcedure() Try _ugePDF.Export(_Grid, _Chemin, DocumentExport.GridExportFileFormat.PDF) Finally End Try End SubTo launch the thread: Public Sub Exporter() _ExportThread = New Thread(New ThreadStart(AddressOf ThreadProcedure)) _ExportThread.IsBackground = True _ExportThread.Start() End SubIt's working with ExcelExporter ...
Perhaps that's wrong?:
Public Sub New(ByVal uGrid As UltraGrid)
_ugePDF = New UltraGridDocumentExporter_Grid = uGrid_ugePDF.TargetPaperOrientation = Infragistics.Documents.Report.PageOrientation.Landscape_ugePDF.TargetPaperSize = Infragistics.Documents.Report.PageSizes.Letter_ugePDF.ImageCompressorType = ImageCompressorType.Flate_ugePDF.AutoSize = AutoSize.None_ugePDF.UseFileBuffer = False
End Sub
great !
Thank 's a lot
Here's the exact code that I used, which generated an outlook groupby rendered to PDF.
{
this.ultraCheckEditor1.DrawFilter = this;
grid.CreateControl();
grid.InitializeLayout += InitLayout;
grid.Width = 500;
grid.Height = 500;
grid.BindingContext = new BindingContext();
grid.DataBind();
}
Infragistics.Win.UltraWinGrid.UltraGrid grid = (Infragistics.Win.UltraWinGrid.UltraGrid)sender;
nop :(
You need to specify the viewstyle for the grid to be OutlookGroupBy in order for it to perform any grouping. Try the following -
_Grid.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
Hi!
export works fine but not the group..
what's wrong ? :
_Grid = New UltraGrid _Grid.CreateControl() _Grid.BindingContext = New BindingContext() _Grid.DataSource = GridSource.DataSource _Grid.DataBind() For Each col As UltraGridColumn In GridSource.DisplayLayout.Bands(0).SortedColumns Dim bSort As Boolean = (col.SortIndicator = SortIndicator.Ascending) Dim cUltraGriCol As UltraGridColumn = _Grid.DisplayLayout.Bands(0).Columns(col.Index) _Grid.DisplayLayout.Bands(0).SortedColumns.Add(cUltraGriCol, bSort, True) Next