CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 aspJPG & CCS error - need help!

Print topic Send  topic

Author Message
GeorgeS

Posts: 206
Posted: 10/14/2004, 11:21 PM

Hi,
I'm not ure what I'm doing wrong with aspJPG component.

I have it installed and it's working because ASP page created in Notepad generates thumbnails just fine.
However, when I insert the same code into CCS into FileUpload1_AfterProcessFile event the very first line gives me an error:
"An error occured when uploading file specified in FileUpload1. Error description: Microsoft VBScript runtime error, Variable is undefined. "

Here is this line:
Set Jpeg = Server.CreateObject("Persits.Jpeg")

Here is my Notepad asp file that works:

<%
Set Jpeg = Server.CreateObject("Persits.Jpeg")

Jpeg.Open "C:\New\1105A.jpg"

' New width
L = 30

' Resize, preserve aspect ratio
Jpeg.Width = L
Jpeg.Height = Jpeg.OriginalHeight * L / Jpeg.OriginalWidth

' create thumbnail and save it to disk
Jpeg.Save "C:\New\html\1105A.jpg"
%>

Thank you.
_________________
GeorgeS
View profile  Send private message
GeorgeS

Posts: 206
Posted: 10/14/2004, 11:28 PM

OK, I got it.
Forgot to Dim Jpeg & L.

_________________
GeorgeS
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.