Build Errors with New DLL's

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for .NET (v3 and older)  /  Build Errors with New DLL's

DynamicPDF Generator for .NET (v3 and older) Forum

 May 29 2008 4:28 PM
Added (Upgraded to 3.0.3 from older version) the following two DLL's to my project:
DynamicPDF.Generator.Developer.DLL
DynamicPDF.Merger.Developer.DLL

and I am getting the following two build errors:

1. Error: "Overload resolution failed bacause no accessible 'Draw' accepts this number of arguments.

Code: objDocument.Draw(Me, "IndvReport.pdf")

2. Error: "'HasPageNumbering' is not a member of 'ceTe.DynamicPDF.PageElements.Label'

Does anybody know how to resolve this errors?

Thanks
 May 29 2008 4:30 PM
code for 2nd error:

pageFooter.HasPageNumbering = True
 May 30 2008 5:35 AM
Posted by a ceTe Software moderator
Hello,

The Draw method will not take two parameters. It will only take a file path as a string or a stream object to write the PDF. You will have to remove the "Me" keyword from the Draw method's parameters and it will work.

HasPageNumbering is a not a member of the Label page element. What exactly you wanted to achieve? Do you want to add page numbers to the PDF. If so you can do this by using the PageNumberingLabel element.

Thanks,
ceTe Software Support Team
 May 30 2008 12:33 PM
Thanks a lot!!! :-) I was able to fix both errors with your suggestions.

All times are US Eastern Standard time. The time now is 4:27 AM.