ASP.NET create excel pivot table - asp.net

May I know if there has something can help to create excel pivot table for ASP.NET? Thanks.
I heard there is a Office Web Component. Is it free and can it make pivot table?
Since we have some complex Excel vba file, we would migrate it into pure web based generated file.

OWC is deprecated. See Office Web Components Lifecycle which states the following:
The most important thing to be aware of is that the Office Web Components technology has been deprecated. This means that only security fixes are being made to all versions of OWC, and no future versions of OWC will be produced. If you are using OWC, you should begin migrating to a new technology as soon as possible. For more information, see the blog post "Office Web Components Roadmap".
Use Excel services instead. See Replacing OWC Reporting with Excel Services for more information.
If you need to generate Excel files on the server side you may consider using the Open XML SDK.

Related

Export Data to PDF in ASP.NET Application

In My ASP.NET Website, I am taking data inputs and storing it in Database. Now, I need to put a functionality where I can get the stored data in Export to PDF facility where i can save the pdf, having the data in specific format. Can anyone guide in this regard ?
you will need to use a 3rd party framework to do this. Most reporting tools have an option to export a report to PDF. I believe SSRS has this option, I know Crystal Reports has this functionality. I'm sure other reporting tools have this feature too.
There are also tools for directly generating PDFs instead of going through a report. A quick google search of .net pdf generator will be a good starting point. There is also iText which is an open source project for generating PDFs from xml. There is not much documentation on iText sharp and it's not actively developed from my understanding so expect a huge learning curve with this library.
unless the reporting features built into the .net framework (reporting services) can generate a PDF that meets your needs expect to purchase a 3rd party tool to help you create the PDF.

How To Embed Microsoft Excel Spreadhseet inside an Asp .Net page? Just like Google Docs

I am developing a web based application that requires extensive works on spreadsheets. The spreadsheets are already created and are updated on daily basis. I just want to open/embed the MS Excel 2003/2007/2010 Application inside my web page. It should seem like the application is running inside an Iframe.
Users can click on file name. It will open the ms excel exe file inside iframe, they'll use the spreadsheets just like using it when ms excel is opened inside desktop.
Please help.
If you're budget allows for it i would recommend not to re-invent the wheel and use a third-party component like Aspose Cells which comes with ready-to-use Excel spreadsheet visualization and manipulation controls. Check out the GridWeb.
Of course there are a lot of other vendors selling similar components with asp.net controls too.
If you have more time than money you could use a free asp.net grid control like RealWorld.Grid or a platform independent solution like dhtmlxGrid (which is only free if your project can be GPL'd). This of course will leave you with a lot of footwork with the office interop libraries.
I have seen Microsoft Word 2003 being launched within browser from websites developed in JSF technology. I couldn't find a free of cost solution to use MS Office in browser while being offline. And even online.
Absent a massive amount of reinventing the wheel the best solution is probably to either scale down your product or get a pre-built solution such as Office 365 or Google Docs. Think about what your product really needs to do. Do the users need to access all of the spreadsheet or just one particular section (range or sheet). If your users need to do everything with a spreadsheet, get them a spreadsheet program. Don't bang your head trying to figure out wheel 88888.0, so to speak.

How to support multiple languages in an ASP.NET web application?

I am working on a web forms application that needs to support multiple languages based on a user's preference. Here are some considerations to keep in mind about the needed solution:
I want to avoid using resource files to store the different text translations because I'd like the ability to change them without having to recompile and deploy the application.
Also the translations ideally need to be adminstratable.
It seems its a considerable amount of effort to add this support to an existing application. Any suggestions would be appreciated. Thanks.
Rick Strahl has and awesome solution that is free for personal use, src available here via SVN:
West Wind Web & Ajax Toolkit for ASP.NET
Data Driven Localization Resource Provider
Database driven Localization lets you store resources in a SQL Server database.
Interactive Web based Resource
Adminstration provides a live Web
based adminstration for that can edit
and update resources while the app is
running
Resource Editing Control associates
icons with each localizable control
and allows jumping directly to the
administration form with the current
resource id and locale selected.
Resx Import and Export lets you
import existing Resx resources,
interactively edit them with the data
driven provider, then export them
back out as Resx resources.
Localization Utilities like a
JavaScript Resource Handler,
functions to embed localized script
values and much more.
You'll need languge tables for each supported language. You may need to start with an "en" table as your base language for the app.
Then you can add tables for en-gb, en-us and if required you can even go brand specific using custom cultures like en-gb-MyApp1, en-gb-myApp2
Make extensive use of caching and write a custom resource provider.
I blogged about my design of an E-commerce store where products, pages etc. are stored in database, and saved in multiple languages by storing column data in XML format.

A way to display an excel 2010 document in an asp.net web application

I am wanting to display an Excel 2010 document in an asp.net web application. This document uses the new slicer functionality which I want to be available to the user.
I know that Excel 2010 docs can be used within SharePoint by inserting a web part which uses Excel services.
But can it be achieved without SharePoint ? Or can it be achieved using the the Excel services API to get the document from SharePoint and then somehow get it to the browser in .net?
Thanks,
Tom.
I am not familiar with the Slicer functionality but.... Excel cells are available via a REST interface within SharePoint 2010 (not 2007). That may help you get to the data you want to expose.
More information on the Excel and Rest with SharePoint 2010 here.
From a non SharePoint perspective, the Skydrive based Web Office apps have Excel functionality. It is possible you may be able to impersonate a user, send a HTTP request to try and bring back the Excel data for display. You could possibly use an IFrame for display also. Having said that, I have never tried it and not sure how well it would work.

Is it possible to automate Visio with ASP.NET?

My clients are trying to revive an ASP.NET 1.0 application (yes, you read that right) that generated data-driven Visio Gantt diagrams. I have access to the code (VB.NET), but there are no notes, comments, or documentation, and no employees from 2003 still around. Compounding the issue, I'm pretty new on the scene (ASP.NET 3.5+ only), so the project structure looks very foreign to me (.resx files?).
I've tried including Visio Interop libs with little success. I tried following this article , but when adding the MS Visio 12.0 type library reference to the project solution in VWD Express 2010, I get an error that reads, "A reference to "Microsoft Visio Viewer 12.0 Type Library" could not be added. Converting the type library to a .NET assembly failed. No process is associated with this object." I don't know what that means but I sense it'll be a huge headache to resolve.
At this point I'm stuck and considering porting this feature to more a current platform. Can anybody suggest anything?
Visio has an xml format (.vdx)
If you don't need Visio to help you with layout or connections, you might be able generate the xml files, then have your ASP app serve them up as consumable Visio files.
If you need Visio's Gantt-chart add-in features, or Visio's export to web or image features, then this might not be the way to go. But if you only need to place shapes on a page, set text and other data fields, and have a fairly simple layout and simple connecting lines, you should be able to go this route.
The last download link in this article is for a presentation on Visio and XML that I gave a while back:
http://www.visguy.com/2006/11/30/visio-and-xml-conference-resources/
You should not access the automation API of any Office program from ASP.NET or any other server environment. It is unsupported, will fail at random, and may cause you to violate the terms of your license with Microsoft.
Tell them "no". You'll be much happier.
Well, you may download and use Aspose.Diagram library. It works with Microsoft Visio files without the installation of Microsoft Office Visio. Developers can create, open and manipulate the elements of diagrams and export to many other supported file formats. Based on your scenario, you may get details from a database backend and then create Visio diagrams. It is achievable using Aspose.Diagram API. Please refer to the technical resources of Aspose.Diagram for .NET API.
I work as a Developer Evangelist at Aspose.

Resources