1. Canvas.Print method is not recognized.
The following line of code
jpg.Canvas.Print 10, 10, "some text"
will generate an error in VB:
Object doesn't support this property or method.
To fix the problem, rewrite your code as follows:
.Print 10, 10, "some text"
2. Font.XXXColor properties return an error
When trying to use the properties Color, BkColor and ShadowColor
of the Canvas.Font object, the following error is returned:
Function or interface marked as restricted, or the function uses an Automation
type not supported in Visual Basic.
There is no clean workaround for this error. To avoid it, you must
change from the early-binding to late-binding model and declare
the jpg variable as Object rather than ASPJPEGLib.ASPJpeg. You may still
create the object using the New expression, as follows:
Dim jpg As Object
Set jpg = New ASPJPEGLib.ASPJpeg