NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on May 07, 2015, 09:37:00 PM

Title: NetWebProcedure
Post by: Djordje Radovanovic on May 07, 2015, 09:37:00 PM
I want to use NetWebProcedure extension in NetTalk app but could not find documentation.

I put this extension in one of my source procedure but nothing change. I use this source procedure to make .PDF file.

How to run this procedure from button and to show result?

Best regards,

Djordje
Title: Re: NetWebProcedure
Post by: Bruce on May 08, 2015, 12:13:23 AM
Hi Djordje,

All this extension does is allow the procedure to be called from the web handler.
At that point you are completely on your own with regard to sending a reply back to the browser.

Perhaps you need to step back a little bit. Tell us a bit more about your setup. Like where is the button (browse, form, menu...?) and where do you want to show the result (in a new tab, inside a media control on the form...?)

Cheers
Bruce
Title: Re: NetWebProcedure
Post by: Djordje Radovanovic on May 08, 2015, 12:29:24 AM
Hi Bruce,

I put button in a browse. My problem is that in a WebHandler I am not finding any reference for this procedure defined on button OnClick Procedure. I traced with DebugView what is happening and when I push the button I see folowing lines

[st] [netTalk][thread=3] Error [-1:2] opening file: D:\AC9.1\FBRoba\web\StiPrn_Fak
[st] [netTalk][thread=3] Sendfile error 404, Error 404 filename=D:\AC9.1\FBRoba\web\StiPrn_Fak
[st] [netTalk][thread=3] SendError = 404 The page cannot be found : The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. FileRequest=[StiPrn_Fak]

where StiPrn_Fak is the name of my source procedure which have to prepare .PDF for showing.

Best regards,

Djole

Title: Re: NetWebProcedure
Post by: Bruce on May 08, 2015, 03:00:59 AM
>> I put button in a browse.

excellent.

where do you want to show the result (in a new tab, inside a media control on the form...?)

cheers
Bruce
Title: Re: NetWebProcedure
Post by: Djordje Radovanovic on May 08, 2015, 06:23:13 AM
Hi Bruce,

I manage to send PDF to brwoser. I put some code in WebHandler and now it opens new page with PDF viewer.

Thank you,

Djordje Radovanovic