微商宣传语录经典:aspjpeg 问题!

来源:百度文库 编辑:中科新闻网 时间:2024/05/08 19:05:28
我已经安装了ASPJPEG组件
为什么在运行这个程序时候还是会出现如下的错误?

Persits.Jpeg.1 错误 '800a0001'

拒绝访问。

程序代码如下:

<%
neirong="ready"
Set Jpeg = Server.CreateObject("Persits.Jpeg")
' Open source image
Jpeg.Open Server.MapPath("1.jpg")

' Resizing is optional. None in this code sample.

' Draw text
Jpeg.Canvas.Font.Color = &Hff0000 ' Red
Jpeg.Canvas.Font.Family = "隶书"
Jpeg.Canvas.Font.Bold = ture
Jpeg.Canvas.Font.Quality = 10 ' Antialiased
Jpeg.Canvas.Font.BkMode = "Trasparency" ' to make antialiasing work
Jpeg.Canvas.Print 10, 10, "ready"

' Draw frame: black, 2-pixel width
Jpeg.Canvas.Pen.Color = &H000000 ' Black
Jpeg.Canvas.Pen.Width = 3
Jpeg.Canvas.Brush.Solid = false ' or a solid bar would be drawn
Jpeg.Canvas.DrawBar 1, 1, Jpeg.Width, Jpeg.Height

Jpeg.Save Server.MapPath("shuoming2.jpg")
%>
<img src="shuoming2.jpg">

分区格式FAT32?如果是的话建议改成NTFS.

IIS是不是没启动对他的支持