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 |
 |
 |
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")
|
 |
 |
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 |
 |
 |
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/
>
|
|
|
 |
|