.NET Woes
Posted: Fri Jul 15, 2011 12:51 am
Hi All,
Has anyone successfully used the JadeDotNetType::getPicture method?
Invoking this method using the example provided (shown below) on Jade 6.3.08 produces a ".NET object already created" exception.
I'd also like to know if a static method on a .NET class can be invoked without creating the .NET object. System.Drawing.Graphics provides static methods to create a Graphics instance (i.e. FromImage), however it seems you cannot create an instance in the first place in Jade to call the method. Catch 22.
Cheers,
Kevin
vars
i : JadeDotNetType; // To represent an Image object
begin
// Use createPicture to make an Image object
create i transient;
i.createPicture(app.loadPicture("c:\jade.bmp"));
// Use the helper method to retrieve binary picture information
write i.getPicture.pictureType; // Outputs 1 (PictureType_Bitmap)
epilog
delete i;
end;
Has anyone successfully used the JadeDotNetType::getPicture method?
Invoking this method using the example provided (shown below) on Jade 6.3.08 produces a ".NET object already created" exception.
I'd also like to know if a static method on a .NET class can be invoked without creating the .NET object. System.Drawing.Graphics provides static methods to create a Graphics instance (i.e. FromImage), however it seems you cannot create an instance in the first place in Jade to call the method. Catch 22.
Cheers,
Kevin
vars
i : JadeDotNetType; // To represent an Image object
begin
// Use createPicture to make an Image object
create i transient;
i.createPicture(app.loadPicture("c:\jade.bmp"));
// Use the helper method to retrieve binary picture information
write i.getPicture.pictureType; // Outputs 1 (PictureType_Bitmap)
epilog
delete i;
end;