This is a migrated thread and some comments may be shown as answers.

gridview PrintAndExportWithRadDocument

11 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 27 May 2014, 02:10 PM
good morning;

I need help to export data from gridview but have too many columns and the export file looks like attachment.
I used the classes of this example  http://demos.telerik.com/silverlight/#GridView/PrintAndExportWithRadDocument
I wanna export in horizontal and use two or more pages for better data presentation. how can do that?

thanks have a nice day.

11 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 30 May 2014, 02:55 PM
Hello Luis,

There are several options you can pursue:
  • Export in a Landscape orientation or with larger PageSize of the Sections.
  • If you still need to split the number of columns per page for example 10 columns to display in the first page and next 20 on another, you will need to implement custom logic as this is not supported out of the box. 
  • Have you considered using our Reporting product which provides advanced printing capabilities?

I hope this helps.

Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Luis
Top achievements
Rank 1
answered on 05 Jun 2014, 10:29 PM
ok,I done that, but how I do for hierarchical gridview, do you have a example project or demo for print and export a hierarchical gridview? with the same code does not print the child rows.
0
Boris
Telerik team
answered on 09 Jun 2014, 03:13 PM
Hello Luis,

For a practical example on how to export RowDetails you can check our ExportingRowDetails Silverlight demo. You will need to combine it with the PrintAndExportWithRadDocument printing demo.

I am suggesting this demo because RowDetails is the recommended approach for displaying hierarchical data in GridView

I hope this helps.

Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Luis
Top achievements
Rank 1
answered on 20 Jun 2014, 03:55 PM
there a way to perform the export in the background, without use the ui thread?
because with this method the user interface is blocked until the export is done, and busyindicator is frozen.
0
Dimitrina
Telerik team
answered on 23 Jun 2014, 02:34 PM
Hello,

You can export data with RadSpreadProcessing. The model is completely independent from UI. You can check this online demo as an example on how to export data.

How does it meet your needs?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Luis
Top achievements
Rank 1
answered on 26 Jun 2014, 02:27 PM
how export to word with RadSpreadProcessing? i can't find the wordprovider.
in the example not exported to word
0
Dimitrina
Telerik team
answered on 26 Jun 2014, 02:51 PM
Hello,

I am afraid you cannot export to Word with RadSpreadProcessing. In Silverlight, you can export to .docx with RadDocument. Please check the Print and Export with RadDocument online demo for an example.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Luis
Top achievements
Rank 1
answered on 01 Jul 2014, 03:22 PM
I need use commands to leave aside the ui thread? I use the logical with a class instance but the UI still freezing
0
Dimitrina
Telerik team
answered on 02 Jul 2014, 03:15 PM
Hi,

When you are using an instance of RadGridView to create a document, you need the UI Thread because of the UI control (RadGridView).
 
In case, you do not need access to UI elements, you can create the document in a different thread similar to:
RadDocument doc = new RadDocument();
var thread = new Thread(() =>
{
    PdfFormatProvider provider = new PdfFormatProvider();
    HtmlFormatProvider htmlProvider = new HtmlFormatProvider(); 
 
    doc = htmlProvider.Import(someHtml);                       
    buffer = provider.Export(doc);
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();

Regarding the export itself (RadGridView.Export()), I can suggest you checking the Async Export documentation.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Luis
Top achievements
Rank 1
answered on 14 Jul 2014, 04:54 PM
how can I get the width of the raddocument for determine the number of columns can I put in it? some property or method
0
Petya
Telerik team
answered on 16 Jul 2014, 11:32 AM
Hello Luis,

You can obtain the width on a per-section basis using the following code:
double availableWidth = this.radRichTextBox.Document.Sections.First.PageSize.Width;

I hope this helps.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Luis
Top achievements
Rank 1
Answers by
Boris
Telerik team
Luis
Top achievements
Rank 1
Dimitrina
Telerik team
Petya
Telerik team
Share this question
or