Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support

All forums · Statistics · Search ·

Two Pilots forum / For software developers / ShowImage expect int, float, float instead of long
Author Message
# Posted: 4 Oct 2012 16:03

I've recently switched to c# from VB and while trying to do a simple ShowImage call, my application fails to compile and I get the error:

Error 13 The best overloaded method match for 'PDFCreatorPilotLib.IPDFDocument4.ShowImage(int, float, float)' has some invalid arguments C:webscitybankliveappsexitInterviewadmin exitInterview.aspx.cs 77

Everything I read in the documentation says that the ShowImage method asks for a long (the image) and two ints (the x and y positions).

# Posted: 4 Oct 2012 22:40

Dear jhoward,

For .NET AddImageFromFile returns integer (System.Int32) number for index. And ShowImage asks integer index. Please use the following code for inserting image to pdf:

int J = pdf.AddImageFromFile("image.jpg");
pdf.ShowImage(J, 5, 5);

If you have any other questions, please don't hesitate to contact us.

Best regards,
Artem Golubnichenko
Two Pilots



Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.023


Page top