iTextSharp Error: Pagesize is ambiguous imported from the namespace or types iTextsharp.text.document and iTextsharp.text

madhukumar
 
on Feb 15, 2013 05:31 AM
3253 Views

I tried ur code , but it show an error on

error is..

pagesize is ambiguous , imported from the namespace or types 'iTextsharp.text.document,iTextsharp.text

Dim pdfDoc AsNew Document(PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Mustafa
 
on Feb 15, 2013 05:41 AM
on Feb 15, 2013 05:42 AM

Try this

Dim pdfDoc AsNew Document(iTextSharp.text.PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)

and check whether it works.