CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Where to put non-CCS custom ASP code?

Print topic Send  topic

Author Message
GeorgeS

Posts: 206
Posted: 08/18/2004, 5:05 PM

Hi,
I have to include custom code for PDF component which generates PDF files according to several params passed through form fields and query string.
I created several custom functions and palced them into Common.asp file.

Where do I need to place my aspPDF custom code on the page so I can use my & CCS functions?
For example:
Set Pdf = Server.CreateObject("Persits.Pdf")
If I do it on the top of the "events" page just under <% it gives me an error that variable "Pdf" is not defined.

Thank you
_________________
GeorgeS
View profile  Send private message
eiden


Posts: 34
Posted: 08/19/2004, 2:36 AM

If I remember right, I used a server side button onclick event, or the afterExecuteInsert and afterExecuteUpdate event for the aspImage component.

To get rid of the error message try this:

Dim Pdf  
Set Pdf = Server.CreateObject("Persits.Pdf")  

View profile  Send private message
GeorgeS

Posts: 206
Posted: 08/19/2004, 11:32 AM

Thank you eiden,

The problem is that in my aspPDF code I call Functions and Subs.
I don't think that I can call my functions from inside of the afterExecuteInsert function.

_________________
GeorgeS
View profile  Send private message
DonB
Posted: 08/19/2004, 9:33 PM

Of course you can call them. You just have to ensure the file containing
them is #INCLUDEd into your ASP page. #INCLUDEs must be placed outside the
<% ... %> block of code. Follow the example you find in your common.asp and
you will not have any trouble.

--
DonB

http://www.gotodon.com/ccbth


"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:64124f253ab26d@news.codecharge.com...
> Thank you eiden,
>
> The problem is that in my aspPDF code I call Functions and Subs.
> I don't think that I can call my functions from inside of the
> afterExecuteInsert function.
>
> _________________
> GeorgeS
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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