Create PDF form-fillable fields from Visual studio - visual-studio-2010

A bit of a Visual Studio 2010 newbie here, but I have developed a modest working knowledge of how to create report forms linked to a database, but I have come across something that I have yet to face.
I have created a report that has three tables on it. Tables 1 (equipment specs) and 2 (operation schedule) are linked to my database. Table 3 is a table (equipment performance audit) that will need to be populated by the people out in the field. They will have to populate these fields in a PDF editor (Adobe) while they are out in the field and simply save them to PDF file. I do not believe there is a plan to have them to be imported back into a database table (which I think we should, but I don't help make those decisions...yet), so we don't need to worry about that.
The problem that I am facing is that I have no idea how to generate the fillable (i.e. text box?) fields for the PDF in Visual Studio, I tried inserting text boxes, but that didn't work...
Any help would be greatly appreciated. Thank you!

Have a look at the ITextSharp library. It will allow you to create PDF files on the fly. I'm pretty sure that it is also able to create PDF forms as well.
ITextSharp is a port of the JAVA based IText PDF library. so most of the conceptual information that applies to IText will also apply to ITextsharp
Some code examples to help:
- iTextSharp — few C# examples.
- Generating PDF using ItextSharp with Footer in C#
- Create PDFs in ASP.NET- getting started with iTextSharp
- IText In Action book samples
- Answer to Fill PDF Form with Itextsharp

Related

Telerik RadSpreadsheet to PDF

I’m currently using web forms and VB.NET I’ve tried following the examples and docs on Teleriks website, however the results are not as expected. It appears that Telerik is taking a screen capture and turning that into a PDF.
What I’m needing is to export the spreadsheet that is displayed in the RadSpreadsheet control into a PDF document such that the results are identical to what’s being displayed.
I’m starting to wonder if Telerik doesn’t actually do anything but take screen shots and save them as a PDF. Even their demo does that. Does anyone know how to go about exporting the Excel file into a PDF? Again their documentation to me isn’t really clear.
there are several libraries used to process documents. They are called Telerik Document Processing. You can use them to generate, modify or convert documents. You could use the RadSpreadProcessing library to export your grid data and then convert the Workbook to a PDF document. Here is the documentation of the PDF export feature https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/formats-and-conversion/pdf/pdfformatprovider
The PDF documents generated this way are not screenshot, they are real PDF documents.

The information of header and footer section is missing on last few pages of a RDLC report

I am new to the forum. Nice to meet all of you.
I am facing the problem that the header and footer section are missing on last 17 pages of RDLC report. However, the previous 60+ pages of report is worked well.The header and footer section is containing both static and dynamic data.
After I go to find the solution, I found that the operation code of report should be no problem and the only thing that may be problem is the things on layout may cause the error.
I also try to make the report with two export: PDF and EXCEL.I found that only PDF have this problem but EXCEL don't have this kind of problem. However, I cant find the problem to change the layout.
I am using SQL server management studio to manage database, Microsoft Dynamic Nav 2013 to get the data from database ,Visual Studio 2010 to manage layout of report.
Thus, hope you guys could suggest some idea for me as this types of problem don't have any discussion on internet.
After my mind is dropping into hell and try to change setting of the places that may be cause the error in more than 10 hours, I finally found the solution!!!
In my report body content, it has a list1 tablix to contain a rectangle that contains two tables to show the list of transactions.I just change the KeepTogether to "True" in the properties of the two tables, the list1 tablix, and the rectangle.And change the PointBreak to "end" for list1 tablix.
Thus, the report is worked well in PDF export.

Exporting MVC3 Print view to PDF

Is it possible with MVC3 (using 3rd party plugins if necessary) to generate a PDF dynamically using the print view of a page? As in, the layout you see if you print or print preview the view.
I know that iText(sharp) can create a PDF out of a normal view of a page but I need to create the print view PDF (via the controller preferably) so that it can be emailed.
I had Crystal Reports in place previously but have scrapped it in favor of HTML reports.
I solved my problem by implementing Rotativa (available from NuGet). It's much simpler and more effective than other converters around (gets a bit tricky with custom authentication though).

Crystal Reports image loading on runtime

I have some reports with many records. Those records have images. They were coming from a .NET Dataset object.
I was initially making the approach of getting the images' contents into the records using System.Byte[] Columns, but the reports took up too much time to load.
I did time profiling. It is not the dataset construction that takes too much.
I put on the table the hypothesis of the images being slowing the process.
So I tried a different approach: Instead of having pictures directly into the tables, I have filepaths.
Following the practic described in Crystal Reports User Guide, I inserted a OLE object of "Paintbrush Picture Type" and its Image's Graphic Location was ser to a database table field. Additionally I also defined a file hyperlink to be the same field.
I tried, it didn' t show the image. But clicking the hyperlink was OK.
So I added more two OLE object items in the report for testing: the first's Graphic location and hyperlink have the filepath of the first record's image. It is a .jpg file.
I created additionally a .bmp copy of that image and set the second item's filepaths to point to this image.
Tested again, hyperlinks work Ok, but no images shown directly in report .
When I click Preview on Visual Studio 2010 Crystal Reports designer I can see the images, but not in runtime.
So, what am I missing for the images to show?
additional info:
VS 2010 premium
.Net framework 4
Windows 7 64 bits
Crystal reports is integrated on Visual Studio
Thanks in advance,
Sérgio
After some frustrating times, it seems I have found a solution in 3 easy steps:
Uninstall every component of Crystal Reports for VS 2008
Reopen Visual Studio 2010
Clean & Rebuild Solution
If you are using CR as a component, during runtime you will notice that the top bar of the component is different: the icons have different design and at right it will say "SAP CRYSTAL REPORTS"

Why use ReportView?

Reporting is pretty new to me. I see that VS provides some Reporting controls that provides a wizard to help creating the report. My question is, if I already have stored procedures that generate the report data, what is the difference between presenting it through a reportview or gridview? Is there obvious advantage that reportview control provides that other grid controls don't?
ReportViewer in local mode (RDLC) has a lot of additional functionality
ReportViewer can do multiple tables, graphs and non-table data
ReportViewer can paginate and print data
ReportViewer has capabilities to export the report into Excel, PDF etc.
You can use ReportViewer controls to display reports generated with Sql Server Reporting Services. So if you wanted to have a report that included charts or graphics, you could create it and host it in SSRS and then include it right in your application.
A grid view can only display data in a grid. The report viewer has the capability to format data in much more sophisticated ways.

Resources