Lite relevant kod
' ## ADD TEXT
IF strImageText <> "" THEN
response.write strImageText & "<BR>" & typeName(strImageText)
oSmartImage.FontFace = strImageFontFace
oSmartImage.FontColor = strImageFontColor
oSmartImage.FontBold = bolBold
' oSmartImage.AddText "Test me!!", strVAlign, strHAlign
oSmartImage.AddText strImageText, strVAlign, strHAlign
END IF
Felmeddelande:
this is a test...
String
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'AddText'
/admin/company/aspSmart_confirm.asp, line 104
Trådstart#1
Detta fungerar:
oSmartImage.FontFace = strImageFontFace
oSmartImage.FontColor = strImageFontColor
oSmartImage.AddText [b]"Test me!!"[/b], strVAlign, strHalign
Detta fungerar inte:
oSmartImage.FontFace = strImageFontFace
oSmartImage.FontColor = strImageFontColor
oSmartImage.AddText [b]strImageText[/b], strVAlign, strHalign
Förslag på alternativ?
