.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to use iTextSharp .Net Library to insert text to PDF Templates

Posted By: codenickel     Posted Date: April 10, 2011    Points: 0   Category :ASP.Net
The article How to use iTextSharp .Net Library to insert text to PDF Templates was added by codenickel on Sunday, January 23, 2011.

You can use Adobe Acrobat professional to create a PDF form template.Put a TextFeild and give a name for that as text1.Then set the formattings.In the c# code follow these stepsusing System;using System.Collections;using System.Configuration;using System

View Complete Post

More Related Resource Links

Search does not find text in Word document stored in document library on a Report Center site within



We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?

Tamara Bredemus SharePoint Minion...working up to Maven

Replace text in a word document stored in a Document Library


Hi to all,

im tying to replace some text introduced in a word document stored in a document library.

Exactly i need a web part with a button that change a key in a word template <list> (for example) and replace <list> with a text in another list.


I think that it would works with the Microsoft.Office.Word.Interop; namespace but when i call the function :

wDoc = wordApp.Documents.Open(ref fileName, ref missing,
                                ref readOnly, ref missing, ref missing, ref missing,
                                ref missing, ref missing, ref missing, ref missing,
                                ref missing, ref isVisible, ref missing, ref missing,

hsdsd: how to insert two values from text box1 to gridview g



table a

a                                 b

jhgd                           kljhskjd

sdghdshgd                 jkhdjhdjk

what i need is when enter some values(varchar ) in txt 1 and 2

it should be added in database and shown in gridview1 after i press butt1


any bodyknows full code answer/akdj

Site templates and Library Labels

I have been having an issue with labels and a document library... I have a created a document library...docs, with a new site content type ...doc1 If I then save site as a template....works fine. However, the template I have for the content type doc1, has a Quick Part (label) added to it to show the document version number on the document. In order for this to pass from the library to the document, I need to activate labels on the list through the Information Management policy settings on the library. I have done this  and got the template working correctly, updating the version number within the document. But, now if I save site as a template I get the error...   Error Error exporting the list named "Docs" at the URL: Docs Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: ea226ba4-0a68-4cfb-9b6f-c557f4ec8ab6 I have tried saving the template at every stage and it is fine up until I turn on the Label option. Any ideas?

Insert html formatted text into word document asp.net(C#)

HI,I am creating an ms-word document from server side using a template. Here i add the reference Microsoft word 11.0 object library. Here i use a template where i set some bookmarks. Now i need to populate those bookmarks.Everything goes fine but i am stuck in one place where i need to write html text exceptnormal text. My code sample is as follows:            object TemplatefileName = Server.MapPath("Template") + "\\High.doc";            object novalue = System.Reflection.Missing.Value;            Word.Table oTable;             Word.ApplicationClass objWord = new Word.ApplicationClass();            Word.Document objWordDoc = objWord.Documents.Add(ref TemplatefileName, ref novalue, ref novalue, ref novalue);            objWordDoc.Activate();            objWordDoc.Application.Visible = true;   objWordDoc.Bookmarks.get_Item(ref prj_name).Range.Text = dProject.Rows[0]["txtProject"].ToString();Here its a complex report. Now in a bookmark i need to write html c

Multiline text field in document library and item update from Word trouble

Hi I have faced a bit of odd problem. Here is the scenario: I have document library with text columns (multiple lines of text) that are set to unlimited length. I have a workflow that runs with Word documents (.docx) that stores information in XML to this field. Everything works perfectly until document is edited in Word and saved back to document library. After Word saves my document in document library, the multiline text field is "cutted", only 7 rows of text is saved to my field. I have tried hiding my text field, making it sealed or readonly, but still Word breaks my field. Funniest thing is that when editing document in Word, this field should not have any changes (meaning that I dont show my "long text field" in document information panel back in Word). I have tried also creating event handler to handle itemupdating event in document library where I switch spweb.parserenabled property to false and in itemupdated event I switch it back on. Also I have tried to remove all line changes from XML with no luck. This XML saving to long text field works perfectly with many other places but in this one environment this does not seem to work :( I am looking forward to any suggestions what to try next. I have been wondering about using the eventhandlers and trying to "protect" my text field with some logic but that is still just a thought.   T

Administratively-Approved Form Templates not updating in Form Library


I did not have this problem for non-administrator-approved templates.

I have managed codes for an administrator-approved templates. After I made C# changes to the template, tried all kinds of way, have the newest version in the forms template doc lib, however, the form document library still refers to the old one, even after I clear the infopath cache folder as RW_IOWA recommended.

I feel the upload/upgrade template page in central admin should take care of this changes, the document lib using the form template should automatically get the changes.

Anywhere could I make a mistake?


mail merge with iTextSharp library?



i'm looking for a way to implement a simple ail merge with iTextSharp library.

I have data stored in database (addresses) and a pdf template.

I need to create a single pdf file where each page contains one address.

How can i do this?


Correct Way to Insert Data from Text Boxes on ASPX page into SQL Database Using VB


Please help me, I have been trying this for a week now and this is how far I have gotten.


I am new to this, and I am using MS Visual Web Developer Express.


OK - This is what I have come up with, but when I run it I get the following error  (I decided to just try to use a simplified table just to get an understanding of the basic concepts):



Partial Class label_form
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        ' Declaring variables
        Dim username, labelname, ownersname, address1, address2, city, state, zipcode, country, contactnumber, emailaddress, data_source, con, sql_insert

        ' Check if Necessary Text Is Missing ( will do this once I can get it to work with no empty text boxes)

        ' Get Values from TextBoxes
        username = txtUserName.Text
        labelname = txtLabelName.Text
        ownersname = txtOwnersName

Not able to insert text to a RichText field


I am trying to insert a modal dialog return value to the RichText field (FullHTML) through Javascript. When i was digging on to the RichText field i found that each text that we give on the RichText field is stored within a <div> tag.The RichText field itself is rendered in the following manner.

<iFrame ID="[RichText_CliendID_iframe]" its a hidden field>



<iFrame Baseline ID="[RichText_ClientID]"

<div>The text that we entered here</div>


I have tried getting the reference of the "RichText_ClientID" and created a <div> tag. But this doesn't work. When I tried getting the reference of the "RichText_ClientID_iframe" and then added a <div> tag to it. I am able to add to this (Have observed this through Dev Tool bar), but couldn't able to see it on the field. 

I am just relating one of the SharePoint OOTB behaviour to this "Insert ---> Upload File" (Displayed on the list forms ribbon button for the RichText fields). Using this option i will be able to upload a file to "Site Assets"

sql server how to insert text with syntax words and single quotation?

i would like to insert text in sql server that contains words like select and a single quotation mark but sql server gives errors like if i wanna insert this :

1. Move the cursor to cell A1.
2. Click in the formula area of the Formula bar.
3. Use the backspace key to erase the 's,' 'e,' and "n.'
4. Type ker.
5. Press Enter.

it gives error about the 'use' word and any other word that might be a command or a syntax


SharePoint library templates


i have a little question about some versions of SharePoint server.

i have installed a development version and a live version.

on my development version when i create a document library and i place in the library several maps, and i upload a document i can choice the destination folder.

when i test this on my live environment this option is not vissible.

is there a reason why this is happening?

and also some site and library templates are not visible when i create a new site or library.

Save text box content as a text file in sharepoint 2010 document library


I am a sharepoint developer and currently I am trying to save content of a text box from client side in document library in share point 2010. I have created a sandbox solution for this. I explored the SP2010 client side object model for ECMA script, however I was not able to crack the problem.

I have created the byte array from the text box content and now I want to save it as a text file in the document library using ECMA script.

Kindly suggest how can I achieve that.

How to insert item in document library along with document


  I have a Document library, i want to upload the document along with other column information, can any one help me with code how to insert a item to document library along with document.

Insert "

" at each line break in a rich text box c# 2010


I want to type a letter in a rich text box and have it converted to html format for bulk email send to customers. Ideally I want to add "</p><p> at each line break, but right now i'd be happy to simply replace the line breaks.

When i run the text through

Int32 n = 0;

string s = EmailBodyRichTextBox.Text;

string t = "";

foreach (char c in s)

SqlBulkCopy How to Use to Insert Data From text CSV file to Sql Table



I am New to using the  SqlBulkCopy Can any one tell me how to use it and how many rows maximum we can insert using the SqlBulkCopy

how to habdle the  exceptions when bulkcopy inserting

Document Library - possible insert survey or poll


Currently using WSS3 and Sharepoint Designer 2007.
Example - Different folders were created under Document Library for different function dept such as HR, Finance etc.
I was thinking whether it is possible to have survey or poll store in these document folders?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend