VB script in photo shop, error when changine modes to bitmap from grayscale

292 views1 repliesLast post: 9/3/2003
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale...)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)

cause an error : docRef.ChangeMode (psConvertToBitmap)

Help .. thanks
#1
The usual work-around for bugs like this is to use the Scripting Listener. Be warned, however, that I can't turn the Scripting Listener off, which is a nuisance.

"Knowledge hungry" wrote in message
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale...)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)
cause an error : docRef.ChangeMode (psConvertToBitmap)
#2