mkill22
asked on
Anyone use AspImage.Image?
Can anyone tell me how to use the variables submitted from a form in the script for the AspImage.Image component?
Logically, you would think that simply using something like:
Image.BackgroundColor = request.form("back_color")
would do the trick, but it always produces this error:
Type mismatch: 'request.form(...).Backgro undColor'
Any ideas anyone?
Logically, you would think that simply using something like:
Image.BackgroundColor = request.form("back_color")
would do the trick, but it always produces this error:
Type mismatch: 'request.form(...).Backgro
Any ideas anyone?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you help at bit more?
When I try:
Image.FontColor = cstr(request.form("fontcol or"))
I get type mismatch error.
The content of request.form("fontcolor") is vbRed. I don't seem to be able to use cstr() with color constants.
Any idea?
When I try:
Image.FontColor = cstr(request.form("fontcol
I get type mismatch error.
The content of request.form("fontcolor") is vbRed. I don't seem to be able to use cstr() with color constants.
Any idea?
That's cause vbRed is a constant. I can't rememver it's value, but it's an integer. I'm at home right now, and don't have my books near me. I'll post you the correct value for vbRed.
xabi
xabi
Image.Autosize = Cbool(request.form("Autosi
In FontName it must be string, so use cstr()
Image.FontName = cstr(request.form("fontnam
Hope it helps you
Xabi