GflAx - ASP Installation ????
Posted: Fri Nov 19, 2004 12:43 pm
OK I'm not the brightest but my ASP is coming on strong. After finding xnView it sounds like the answer to my problems.
I have a site that I'm building using ASP, I have many different formats of images that need to be displayed, rather than use individual 'viewers' I'd like to use the GFL SDK to impliment ASP integration ..... but I can't get it the examples to work.
I get 500 Internal Server Error - The page cannot be displayed.
I've copied the GflAx.dll to system32 and run regsvr32 to register it.
I'm using example1.asp as provided in build 2.20 (as below)
Server in 2003 running IIS 6.0
What am I doing wrong?
<%
' Load a picture, and display informations.
Dim Path, File
Set ctrl = server.createobject("GflAx.GflAx")
Path = Server.MapPath("/GflAx")
File = Path & "\image.jpg"
const AX_JPEG = 3
With ctrl
.LoadBitmap File
%>
<table border="1">
<tr><td width="150"><b>Width</b></td> <td width="100"><% =response.write(.Width) %> px</td>
<td rowspan="8" valign="top"><img src="image.asp?<% =file %>"></td>
</tr>
<tr><td><b>Height</b></td> <td><% =response.write(.height) %> px</td></tr>
<tr><td><b>ColorModel</b></td> <td><% =response.write(.ColorModel) %></td></tr>
<tr><td><b>BitmapType</b></td> <td><% =response.write(BitmapTypeLabel(.BitmapType)) %></td></tr>
<tr><td><b>Xdpi</b></td> <td><% =response.write(.Xdpi) %> dpi</td></tr>
<tr><td><b>Ydpi</b></td> <td><% =response.write(.Ydpi) %> dpi</td></tr>
<tr><td><b>NumberOfImage</b></td> <td><% =response.write(.NumberOfImages) %> image(s)</td></tr>
<tr><td><b>OriginalSize</b></td> <td><% =response.write(.OriginalSize) %> ko</td></tr>
</table>
<%
end with
set ctrl=nothing
Function BitmapTypeLabel(BitmapType)
select case BitmapType
case 1: BitmapTypeLabel="Binary"
case 2: BitmapTypeLabel="Grey"
case 3: BitmapTypeLabel="Colors"
case 4: BitmapTypeLabel="True Colors"
end select
End function
%>
I have a site that I'm building using ASP, I have many different formats of images that need to be displayed, rather than use individual 'viewers' I'd like to use the GFL SDK to impliment ASP integration ..... but I can't get it the examples to work.
I get 500 Internal Server Error - The page cannot be displayed.
I've copied the GflAx.dll to system32 and run regsvr32 to register it.
I'm using example1.asp as provided in build 2.20 (as below)
Server in 2003 running IIS 6.0
What am I doing wrong?
<%
' Load a picture, and display informations.
Dim Path, File
Set ctrl = server.createobject("GflAx.GflAx")
Path = Server.MapPath("/GflAx")
File = Path & "\image.jpg"
const AX_JPEG = 3
With ctrl
.LoadBitmap File
%>
<table border="1">
<tr><td width="150"><b>Width</b></td> <td width="100"><% =response.write(.Width) %> px</td>
<td rowspan="8" valign="top"><img src="image.asp?<% =file %>"></td>
</tr>
<tr><td><b>Height</b></td> <td><% =response.write(.height) %> px</td></tr>
<tr><td><b>ColorModel</b></td> <td><% =response.write(.ColorModel) %></td></tr>
<tr><td><b>BitmapType</b></td> <td><% =response.write(BitmapTypeLabel(.BitmapType)) %></td></tr>
<tr><td><b>Xdpi</b></td> <td><% =response.write(.Xdpi) %> dpi</td></tr>
<tr><td><b>Ydpi</b></td> <td><% =response.write(.Ydpi) %> dpi</td></tr>
<tr><td><b>NumberOfImage</b></td> <td><% =response.write(.NumberOfImages) %> image(s)</td></tr>
<tr><td><b>OriginalSize</b></td> <td><% =response.write(.OriginalSize) %> ko</td></tr>
</table>
<%
end with
set ctrl=nothing
Function BitmapTypeLabel(BitmapType)
select case BitmapType
case 1: BitmapTypeLabel="Binary"
case 2: BitmapTypeLabel="Grey"
case 3: BitmapTypeLabel="Colors"
case 4: BitmapTypeLabel="True Colors"
end select
End function
%>