{System.Security.SecurityException: File operation not permitted. Access to path '' is denied.
at System.IO.FileSecurityState.EnsureState()}
Any idea why this is the case?
8 Answers, 1 is accepted
Can you check the inner exception to see what is going on?
Kind regards,Vlad
the Telerik team
The inner exception is null.
Can you trace the code using the debugger to see the exact line with the exception? Can you export normally from our demos?
Best wishes,Vlad
the Telerik team
I am using this code but get an OutOfMemoryException because of the large amount of data I want to export to the PDF... Is there something I can try in order to avoid this exception?
I am attaching the result of the .pdf file I was able to export after filtering some data, you will see it is not really pretty because of the large amount of column.
Regards
I figured it out, there is a grouping on my gridview and when I remove it the pdf prints out correctly.
How should I handle the grouping when I want to export to a .pdf file??
Regards
Can you post the exception stack trace?
All the best,Vlad
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Here's the StackTrace from the OutOfMemoryException I get.
à Telerik.Windows.Documents.Model.Table.RecalculateGridIndexes()
à Telerik.Windows.Documents.Model.Table.RecalculateTableGrid(Single measureWidth)
à Telerik.Windows.Documents.Layout.TableLayoutBox.MeasureOverride(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
à Telerik.Windows.Documents.Layout.SectionLayoutBox.MeasureOverride(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
à Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverride(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
à Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
à Telerik.Windows.Documents.Model.RadDocument.Measure(SizeF measureSize)
à ExceldorERP.Helpers.TelerikHlp.GridViewMenu.Export(RadGridView gridView, String format)
Hope it helps.
Regards
This issue is caused when too large tables are inserted in the document.
We have fixed it in the Q2 Beta and if you upgrade to 2011.2 623, the issue should not be present any more. However, we highly recommend that you split the data into several tables, as you will be able to achieve better performance with few changes in the code and the resulting file.
Iva
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
