Sherry,
>the code works in VB but not VFP. is it right?
If you just cut and pasted my entire line of code, it won't work because of a
typo. I can't test whether the method can be called right now, because the
computer I'm on does not have Imaging for Windows.
I was simply pointing out that you were using the wrong method name, according
to MSDN Library. Perhaps it is incorrect in the docs, but you have
"CreateViewerObject" and the docs say "CreateImageViewerObject". Which one are
you using in VB?
Here is the corrected line (I had OjbApp instead of ObjApp)
ObjImg =
ObjApp.CreateImageViewerObject(1)