v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

Generate XtraReport from ASPxGridView to Generate PDF

Issue Details

Log in to Track Changes or Edit
Q207566
Question
Paul Rubin
Yes
Processed
Answered
.NET (ASP.NET)
XtraReports Suite
9.1.4.0
Windows Vista
Microsoft Visual Studio 2008
6/1/2009 5:58:43 PM
-> Created by Paul Rubin 5/29/2009 3:23:20 PM

I have an application that uses a dynamically generated ASPxGridView, typically with many columns. I can export to PDF using the ASPxGridViewExporter, which respects the users column selection, sorting, and filter bar choices, but the large number of columns generates additional pages.

I would like to be able to wrap columns, much like you can do in an XtraReport. Is this possible, respecting the users column selection, sorting, and filter bar choices? And if so, do you have an expample?

<- Reviewed by DevExpress Team 5/29/2009 3:46:58 PM
<- Processed (Answered) by DevExpress Team 6/1/2009 1:13:01 PM

Hi Paul,

I suggest that you try to increase the ASPxGridViewExporter.MaxColumnWidth property value. Does this make any difference?
Unfortunately, there's no built-in capability to convert an ASPxGridView layout to an XtraReport document.
As an immediate solution, I suggest that you create the XtraReport layout programmatically.
Check this online example, illustrating how to use an SQL query result to generate a report at runtime: How to query a report's parameters in a Web application using a combo box control.

Thanks,
Alex

-> Reactivated by Paul Rubin 6/1/2009 2:37:30 PM

Can I read the selected columns, column order, sort order, and filtered rows from the grid?

<- Processed (Answered) by DevExpress Team 6/1/2009 5:58:43 PM

Hi Paul,

To access the ASPxGridView's column collection, use the ASPxGridView.Columns property.
The column's position among sorted columns is accessible using the GridViewDataColumn.SortIndex property.
To learn how to iterate rows displayed within the ASPxGridView, refer to this documentation article: ASPxGridView - Traversing Rows.

Thanks,
Alex

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips