However, there is broken link to aspx.vb/aspx.cs files
Any suggestions?
29 Answers, 1 is accepted
The demo you are referring to is working as expected on my end. Try to open in again and see how it works on your end.
Moreover, would you elaborate more on where are you seeing broken links? Are they in the linked demo or somewhere else? I would appreciate it if you could provide a screenshots or video that show the issue.
Regards,
Viktor Tachev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
"Could not load file or assembly
'Telerik.Windows.Documents.Spreadsheet, Version=2014.3.1024.40,
Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its
dependencies. The system cannot find the file specified."
It is a little strange, considering this is ASPX solution. Also, i don't have this dll.
Please advice where i can get it
"Could not load file or assembly
'Telerik.Windows.Documents.Spreadsheet, Version=2014.3.1024.40,
Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its
dependencies. The system cannot find the file specified."
Any suggestions?
<ExportSettings>
<Excel Format="Xlsx"></Excel>-
</ExportSettings>
In order to prevent the error you should add the dll file to the bin folder of your application. The assembly is located in the ExternalLibraries folder in UI for ASP.NET archive. I would also recommend checking the following article that elaborates more on working with the Document Processing Library.
Regards,
Viktor Tachev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
After adding dlls i was able to export xlsx, however fields with with currency formatting export with "C" instead of "$".
I am ok to loose "$" as xls does. What can be done?
Note that only the custom numeric format strings will work because in most scenarios they match the Microsoft Excel’s custom numeric format. The built-in .NET standard numeric format strings can still be used, but the output will not be as expected.
Regards,
Kostadin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
So, how exactly i replace DataFormatString="{0:C2}" for example?
Thank you
David
Please try the following:
<
ExportSettings
SuppressColumnDataFormatStrings
=
"true"
>
And add this code to the InfrastructureExporting event handler:
foreach
(Row row
in
a.ExportStructure.Tables[0].Rows)
{
row.Cells[1, row.Index].Format =
"$#,##0.00"
;
}
Let me know whether this helps.
Regards,
Daniel
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Is there a simpler way to just eliminate $ formatting in xlsx (just export number)?
Indeed, it is possible to remove the ASP.NET format strings when exporting. You just need to set SuppressColumnDataFormatStrings="true" in ExportSettings.
I hope this helps.
Regards,
Daniel
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Unfortunately SuppressColumnDataFormatStrings="true" didn't make any difference.
Could you please download the latest internal release and then try my suggestion again? There was a bug related to this functionality which should already be fixed in the internal release. If you have any troubles with this, please submit a ticket through the support system and add a reference to this forum post.
Please accept our apologies for any inconvenience caused.
Regards,
Daniel
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thank you for the link. After adding the required dll's, things are working great.(Surprise, surprise)
Can you please submit a support ticket with a link to this forum post so that I can send you a project with the latest internal build?
Regards,
Daniel
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Ticket submitted (ID is: 895009)
Thank you
David
Thanks for your assistance.
Daniel
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Did you change anything before running the demo? I ran that example locally but it worked out of the box.
Regards,
Daniel
Telerik
I use SuppressColumnDataFormatStrings="true" and it works fine for excel. However, I also have word and pdf exports and it changes the formatting for that as well.
is there an easier way than to manually change the formatting for ecery export type on every page that has exporting enabled in my application?
Hi,
The ItemCommand event will fire for each command so you can distinguish the different export types.
Then, you can try changing the property and format strings directly as per your needs. If this does not help, cancel the command (e.Canceled = true), modify the properties, and call the corresponding MasterTableViwe.ExportToXXXX() method (replace XXXX with the appropriate format, e.g., Pdf, Docx, as per the command name).
If you want this to propagate throughtout the application, you can use ASP_Themes. You can define the handler in a global class and apply the theme to all pages.
Regards,
Telerik by Progress
I use themes in my application.
Could you provide an example of the global class handler to modify export properties?
Hi,
Code reusability is a matter that the application developer is better equipped to tackle than me. The concrete implementation will vary according to the application structure, requirements, limitations and the preferences of the developers. Also, there are many ways to do that. For example:
- Encapsulate the grid in a user control that will have the data sources, handlers and properties ready. You can expose some configuration options via properties and then use that user control instead of the grid.
- Inherit the grid in a custom class and add the needed handlers there.
- Inherit the base Page class, add the necessary code there and set the handler name in the user control or inherited class. Actually, a Theme cannot set handlers, I had missed that in my previous answer.
Regards,
Marin BratanovTelerik by Progress
Thanks I got that. I got confused by the App_themes and I was wondering how o do that.
It works for me now.