Currently I using ITextSharp for exporting my gridview to pdf. My gridview have an Image file and it’s width will expend to 125% and height also to 125% percent.
My questions are:
-
how do i set the image to widht:80px and height:100px.
-
after set the image width and height, how to insert it to the gridview?
besides that, after i export the gridview to pdf file, the image will go out of the cell. What is that and how to solve?
See this post in MikesDotnetting. Another post about working with tables in iTextsharp is also there
See a sample code for working with tables
Here you can see a three column table. For adding multiple rows you can loop the table content part in the code.
Pass the values from code as shown.