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

Export all gantt tasks including in non visible area to Image

4 Answers 128 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Premkumar
Top achievements
Rank 1
Premkumar asked on 23 Jan 2018, 11:55 AM

Hi Telerik Team,

I have a requirement in which I need to export the whole gantt area including non visible area (hidden inside scrollviewer) in to image. With the normal scrollviewer I could easily export the contents even in non visible area by passing the content of the scrollviewer. But RadGanttView doesn't have scrollviewer, instead it has two scrollbars. Kindly provide me the solution to export all gantt tasks including in non visible area to image.

 

Thanks and Regards,

Muhammad Azhar Shah

MSC Technology

4 Answers, 1 is accepted

Sort by
0
Premkumar
Top achievements
Rank 1
answered on 24 Jan 2018, 11:02 AM

Hi Telerik Team,

I have found the solution. I'm passing LogicalCanvasPanel as content to export the whole gantt task including in non-visible area to image.

 

Thanks and Regards,

Muhammad Azhar Shah

MSC Technology

0
Premkumar
Top achievements
Rank 1
answered on 29 Jan 2018, 06:44 AM

Hi Telerik Team,

Sorry for the previous reply. It is not working as expected. Because it is a virtualizingStackPanel, the task objects are destroyed and I'm not able to export the non visible area to image. Is there any solution available to fulfill the requirement? Waiting for your solutions.

 

Thanks and Regards,

Muhammad Azhar Shah

MSC Technology

0
Accepted
Dilyan Traykov
Telerik team
answered on 31 Jan 2018, 02:36 PM
Hello Muhammad,

If you have not done so already, could you please have a look at the Printing And Exporting demo from our SDK Samples Browser where a similar use case has been demonstrated? The source code of the example can also be found in our GitHub repository.
 
Rather than print the control, you can use the collection of ImageInfo objects provided by the RadGanttView's ExportingService's BeginExporting method.

I hope you find this example helpful. Please let me know if you require any further assistance on the matter.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Premkumar
Top achievements
Rank 1
answered on 07 Feb 2018, 10:00 AM

Hi Dilyan,

Thank you for your reply. I have found already this sample and completed the requirement. It is working very nice. Thanks again.

 

Regards,

Muhammad Azhar Shah

MSC Technology

Tags
GanttView
Asked by
Premkumar
Top achievements
Rank 1
Answers by
Premkumar
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or