Wednesday, November 07, 2007 10:52 AM rrobbins

My ASP.NET Work Activities

I have not read any blog entries about how developers are using ASP.NET in their work so I thought I'd write about my current projects. I think a professional blog should be used to keep your clients and colleagues informed about your work activities, project progress, and current research or studies.

Currently I am working a project that requires me to generate a PDF based on data supplied by an online form. Unfortunately there are over 200 form fields required so progress has been very slow. With that many form fields and associated database table columns, I have written a few scripts to generate ASP.NET code. I wrote scripts to define all the variables and variable assignments for hundreds of webcontrols. I used regular expressions for that and learned more about backreferences and submatches in VBScript.

I tried to use ceTe Software's DynamicPDF Designer and DynamicPDF ReportWriter for this project but it was very tedious to design the PDF entirely through code. The DynamicPDF Designer is an interesting tool, similar to Visual Studio with its own toolbox, properties window and design view but it was unable to import an existing PDF and that forced me to completely recreate a 5 page PDF.

Fortunately, I read an article about iTextSharp, a port of the iText, a free Java-Pdf library. I was able to import an existing PDF into Adobe LifeCycle Designer and get information on all the AcroFields. Now I am writing the ASP.NET code to populate the AcroFields with data from the SQL Server database and generate a PDF form that has been filled out with the required data.

I will probably use this on another project that also requires me to generate PDFs based on templates with data pulled from a database. Currently that project is also using Word RTF templates with fields defined by brackets. My ASP.NET code reads in the Rich Text File and replaces the brackets with data from the database. Unfortunately this requires me to figure out some RTF syntax to format text and the template file is very fragile. Making a minor edit to the template will often screw up my fields.

I am also working on many projects to customize the Storefront 6.0 ecommerce shopping cart from LaGarde. This shopping cart was developed in ASP.NET 1.1 and has never been upgraded for ASP.NET 2.0. That is the biggest reason for me being so unfamiliar with ASP.NET 2.0. Storefront 6.0 has had 8 service packs but now its development has been abandoned so there is a high demand for fixes, customizations, and maintenance by ecommerce sites that are deperate for support. Storefront 6.0 requires 5 projects in a solution and there are a huge number of classes. Fortunately I have found a way to make my work easier using the log4net logging service. Log4net allows me to "instrument the code" so I can figure out if a method is being called and if its variables have the expected value. This would all be a lot easier if I could use Visual Studio 2005 and ASP.NET 2.0.

This week I fixed a problem with the Freightquote component of Storefront 6.0. They made a slight change to the syntax of the XML request you make to their web service for obtaining shipping quotes. Apparently the developer of Storefront 6.0 is not going to bother to fix this. I will also be troubleshooting a problem with the changes USPS made to their web service.

Filed under: , , ,

Comments

# re: My ASP.NET Work Activities

Wednesday, November 07, 2007 2:35 PM by Artur Trosin

Hi rrobbins,

about iTextSharp, we used the heavily the library for about 3 years to generate PDF reports, we had a lot of bugs that are very hard to fix or work around them somehow, we had high demand requirements for these reports and for a lot of requirements the library doesn’t meet any support or event supported functionalities in some cases doesn’t work properly. So we decided to leave the library and never comeback to it.

This is our opinion.

# re: My ASP.NET Work Activities

Friday, September 19, 2008 6:59 AM by Ranganadh

Hello,

My name is Ranganadh and I am working for ceTe software and we do have products which can be used to achive the above requirements.

You can use an existing PDF as a template using the TemplatePath property of the Report element. You can add any new data to the existing PDF document without any problem. The Designer and the ReportWriter products are mainly useful when creating the PDF reports using the data from a database. You can just layout a design and use the layout (.dplx) file to create the report programmatically.

If you want to fill the form fields of an existing PDF document then you can do this very easily by using the form field names. You can get the existing field names and then using these names you can fill the fields with the data coming from database. In order to work with the existing PDF documents you will have to use the DynamicPDF Merger product. You can also refer to the examples downloaded with the product download. We have examples to fill the fields of a PDF with the data and to read the form field names.

It is not possible to use the .doc or .rtf files as templates, however you can convert these files into PDFs and then you can use the PDFs as templates. The Converter product is currently in beta and you can download it from our website http://www.cete.com/Products/DynamicPDFConverterforNET/index.csp">www.cete.com/.../index.csp.

PDFs generated by our product are fully comply with the PDF specifications of Adobe. Our product is designed keeping the efficiency in mind and we do provide an excellent technical support. You can contact our support for any technical queries at support@cete.com.

You can refer to our website for more details at http://www.cete.com/.

Thanks,

ceTe Software Support Team.

# re: My ASP.NET Work Activities

Tuesday, November 16, 2010 10:16 AM by Chinese Zodiac

I like to take breaks during the day and browse as a result of some blogs to view what others are saying. This blog appeared in my searches and I could not help but clicking on it. I am happy I did simply because it was a quite pleasant read.

--------------------------------------------

my website is  

http://frenchspeaking.org

Also welcome you!

# re: My ASP.NET Work Activities

Friday, December 17, 2010 6:31 PM by creating an ipad app

When all else is lost the future still remains.

-----------------------------------

# re: My ASP.NET Work Activities

Friday, December 24, 2010 12:17 PM by netbook vs ipad reviews

A man is not old as long as he is seeking something. A man is not old until regrets take the place of dreams.

-----------------------------------

# re: My ASP.NET Work Activities

Monday, January 03, 2011 4:42 PM by ipad case

-----------------------------------------------------------

"You have a truly fascinating weblog. Too many blogs that I see now don't actually provide anything that I am interested in, but I'm definately interested in this one.  Just thought that I'd pass that message on. "

# re: My ASP.NET Work Activities

Saturday, January 08, 2011 2:11 PM by ipad application

-----------------------------------------------------------

"Substantially, the report is truly the freshest on that deserving matter. I harmonise with your conclusions and also absolutely will eagerly seem forward for your  future updates. Saying many thanks certainly is not going to basically just be sufficient, for that exceptional lucidity with your writing. I can directly grab your rss feed to stay  privy of any kind of updates. Gratifying function and also a lot good results as part of your company enterprize!"

# re: My ASP.NET Work Activities

Monday, January 17, 2011 2:59 PM by toaster oven reviews

"Google is fantastic, it is the heart of all of the information! Laughing  We are equipped to ask no matter we would like, and yahoo will reply them. Like proper now, I'm browsing, seeking for entertainment and information, and at last discovered your posting. It give me what I hoping for. Appreciate it inside your posts, this really is quite helpful."

--------------------------------------------------------------------    

Systems Biology

# re: My ASP.NET Work Activities

Wednesday, May 25, 2011 6:27 AM by weblogs.asp.net

My asp net work activities.. WTF? :)

# re: My ASP.NET Work Activities

Wednesday, June 29, 2011 9:56 PM by George Emmitt

Very beneficial posting Excited for extra content articles within your web-site.

# re: My ASP.NET Work Activities

Monday, July 04, 2011 4:59 PM by Gala Creitz

Really educating blog, bookmarked the site in interest to see a lot more!

Leave a Comment

(required) 
(required) 
(optional)
(required)