How to create Editable PDF by ASP.NET - asp.net

How to create editable PDF using ASP.NET. I want to create a Pdf from a master template, edit it (fill some value(input not from database)) and save. Is it possible without using a 3rd party?
If some sample code available it will be great

I use PDF4NET in a couple of projects, can definitely recommend it. There are code samples on their website.

You can use the open-source iTextSharp, which is a port from iText (java).
Here is a code sample that creates a form with a text field (it's java but the iTextSharp interface is nearly identical)

Maybe you can try the ReportViewer control.
You can create a "report template", assign data to it in runtime (fill in values), render it, and save the result.

I like http://dynamicpdf.com they have a free community edition which allows you to programmatically create PDF's from scratch. The paid products offer much more functionality and they have a designer as well.

You can use Aspose.Pdf.Kit for this purpose. In fact, it can be used either in a ASP.NET or Windows application. You can download the trial version. Have a look at the related documentation; that might be of some help.

Related

ASP.NET Web forms C# generating a Docx file from the fields the end-user fill up

Good Day!
I want to create a asp.net web forms C# program that will generate a Docx file containing the data from fields the end-user fill up.
You see, I tried using NPOI but I don't see any tutorial that can help me about my case. I also use Power tools too, but sadly there is also no such thing that can help me.
Thank you so much in advance!
P.S My Sir said I cannot use an excel type file. It has to be a Docx type file.

WYSWYG web editor for Sharepoint

Is there any approach to have a simple WYSWYG free web editor (preferably drag'n'drop widgets -based) embedded or integrated into Sharepoint 2010?
I am shocked because this answer seems to not exist... So far I've found...
Plugins for integrating Sharepoint into Drupal, Joomla or Wordpress, but I want the opposite, using those interfaces to create content stored in Sharepoint, without having to export HTMLs and adapting them to SP arquitecture and metadata. If not, I cannot even find any way to export a Wordpress/Drupal site into Sharepoint.
Web content rich editor: Am I doing something wrong is this just an html loader that does not edit a thing?
Webparts: all seem to be costly, and I am not sure there even exists a nice one for that concrete task
Could somebody point me to the most optimal solution for non-tech users using this feature? Thank you
By the way, is there any public web part repository from microsoft. Even searching that in google does not throw any interesting info..
Most public, open source projects for Microsoft can be found at http://www.codeplex.com/.
Regarding your requirement, if I understand correctly, you want to have a way to store content in SharePoint for display in a drupal or other CMS. The content should be in HTML format. If I understand you correctly, the easiest way to do this is to create a basic SharePoint list, add a multiline column and set the type of text to Enhanced rich text (Rich text with pictures, tables, and hyperlinks). When you add an item to the list, the form will include a form element that has a WYSWYG editor.
I've integrated SharePoint with Linux before using Curl. It's not easy, but can be done.

Embed editable MS Word document on web page

I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.
We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.
Can anyone suggest a way to do this?
Edit - For clarity, the document/data would ideally stay on our own servers.
What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.
Not sure if this meets all of your requirements, or is an available option.
For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.
Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.
This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).
Update
Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.
You could use the Zoho API or, if you need to keep all data on your own servers and validated clients at all times, you could try the Aspose components.
If you're interested to provide documents in a view-only way then you can try GroupDocs as well: http://groupdocs.com/. They offer viewers for different file types which you can add to your website very easily: http://groupdocs.com/apps/viewer.
Since you need to keep data on your own server, aceoffix can be one of your alternative. It is a plugin installed on your own server and save all data on your server too.

Why should I choose Crystal Report or SSRS over plain HTML table?

I am using ASP.NET MVC. Sometimes I work with ASP.NET Web Forms too. I can pretty much create my queries using stored procs or LINQ and render my report just using a plain HTML table. With proper styling it should come out decent.
I don't know SSRS but I have some experience working with crystal from before. The only advantage I see from using crystal for my reports against just a simple HTML table is that it can export to PDF. But I could probably get some third-party library that can do that too. Regarding charts like pie and bar graphs there are a lot of javascript tools available out there that does that and they're free.
I guess I'm posting this to see what I'm missing with reporting tools like Crystal and SSRS.
EDIT: With ASP.NET MVC it is not particularly difficult to create the report. Just formulate the correct model, create the controller action and view with scaffolding (Detail) and you will have the code generated for you right away. With ASP.NET Web Forms it is probably easier, just use a GridView and you're done. For both cases all that is left is the CSS. With Crystal you also need to edit the layout you have generated the report, which is work still as well.
The reason we use SSRS for our internal reports is that our database guy can create reports without having any knowledge of how to format output using code.
your points are valid and I have been thinking about such things multiple times.
Personally I used CR in the past and SSRS more recently, but my absolutely best experience was with DevXpress XtraReports, super cool design and royalty free end user designer with or without Ribboned interface.
the difference between using a report engine or plain raw HTML is in the way you design the reports and the overall features.
in XtraReports for example, the lovely thing is that a report is simply a .cs file (C# class) and whatever you design with the UI designer is stored in that file exactly like the windows forms designer does ( or ASP.NET aspx and aspx.cs designer does ). So you see the report you are designing and you Drag & Drop controls and place them where needed. Then you have out of the box formulas, running totals, page breaks, as you mentioned export to pdf, excel, jpg, html, word and so much more.
if I was free to choice again I would go again for XtraReport and forget about plain and raw html table coding, let's focus on the real business of the application we write and not get nuts with page breaks, exporting things and in house implemented formulas or group/running totals... this is my idea and approach at least.
The biggest reason for me to use a reporting engine is for printing and page breaks. You can't always guarantee the way the HTML will format for all the various browsers and it's not great for setting hard page breaks. With a reporting solution, you can group things together to force page breaks to be more predictable.
This is especially important if you're looking for a more professional looking report.
as already stated above using another report generator can have much benefits. I've used very often List & Label. There is a completely different concept behind and depending on your needs it will be easier but still powerfull, especially for .NET reporting. It is worth to do a trial (there is even a free edition available).

Can someone recommend an asp.net reporting package that allows users to define their own reports?

We are adding a reporting page to one of our asp.net applications, and one of the requirements is the user be able to customize their reports. CrystalReports won't work because we can't guarantee the user will have a local copy in which to modify a report. MS Reports doesn't seem to support what we want either. Is there a package out there with an interactive designer which we could embed in our application? Or some other option that maybe we've overlooked?
The input for the report will be an XML file.
Thanks
How about Microsoft Reporting Services? The user can be given access to an activeX control that will allow them to modify the .rdl files. They are interactive and built for the web.
You can also integrate it into Sharepoint.
Have you checked out the DevExpress reporting and grid packages? What I did was to create a reporting page with a variety of data selection fields at the top. The user could customize the selection criteria and then simply re-run the report. This provides end-user selection criteria customization but not layout customization.
You might also want to look at their grid and pivot-grid packages. It is very easy to customize the grids - even for the end-user. If they rearrange the fields or pull them into a grouping area, that customizes the presentation. These can very easily be exported as a report (PDF), Word document or Excel document as well. We also created an interface that pulled or deleted fields from the grid as well. Thus we have end-user selection and returned field customization as well as grouping and summaries.
The one thing that no one provides, as far as I know, is a full-fledged end-user reporting tool that provides selection criteria, returned field AND formatting customization.

Resources