This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > May 2007 > Two action on one SUBMIT click.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Two action on one SUBMIT click.
Dave Lagergren

2007-05-03, 6:16 pm

I have a database application in FP 2003 where I need to submit the results
of a form to the database AND print a copy. Can I do this with one button?
One solution I came up with (but haven't yet implemented) was to have the
program that adds the submission include a PRINT button but it seems unneeded
if it can be accomplished with one key press.

Also, I guess I would need to have the Windows Printer window open so the
user could select a printer.....

--
Dave Lagergren
Manager - Data Applications
Wireless Management, Inc
Specializing in cellular wireless applications
Thomas A. Rowe

2007-05-03, 6:16 pm

You have to provide the user with a print button or instructions for printing, as you can not
automatically print a document/page from a web page on a user computer.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Dave Lagergren" <DaveLagergren@discussions.microsoft.com> wrote in message
news:11BF930E-F5A7-4D0F-9A69-5BED5E36BC2E@microsoft.com...
>I have a database application in FP 2003 where I need to submit the results
> of a form to the database AND print a copy. Can I do this with one button?
> One solution I came up with (but haven't yet implemented) was to have the
> program that adds the submission include a PRINT button but it seems unneeded
> if it can be accomplished with one key press.
>
> Also, I guess I would need to have the Windows Printer window open so the
> user could select a printer.....
>
> --
> Dave Lagergren
> Manager - Data Applications
> Wireless Management, Inc
> Specializing in cellular wireless applications



Brutus

2007-05-03, 10:15 pm

OK. I understand that. But can't I tie two functions (save to database and
print) to one button click?

Dave

"Thomas A. Rowe" <tarowe@mvps.org> wrote in message
news:%23FqvE8cjHHA.1624@TK2MSFTNGP06.phx.gbl...
> You have to provide the user with a print button or instructions for
> printing, as you can not automatically print a document/page from a web
> page on a user computer.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "Dave Lagergren" <DaveLagergren@discussions.microsoft.com> wrote in
> message news:11BF930E-F5A7-4D0F-9A69-5BED5E36BC2E@microsoft.com...
>
>



Thomas A. Rowe

2007-05-04, 6:16 am

No, as one would be server-side via ASP and the print function would be client-side JavaScript.

What you can do, is post to the database, then return a custom confirmation page with a print
button.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Brutus" <brutus@freetidbet.net> wrote in message
news:suadnS0qgMhMGKfbnZ2dnUVZ_vOlnZ2d@comcast.com...
> OK. I understand that. But can't I tie two functions (save to database and print) to one button
> click?
>
> Dave
>
> "Thomas A. Rowe" <tarowe@mvps.org> wrote in message
> news:%23FqvE8cjHHA.1624@TK2MSFTNGP06.phx.gbl...
>
>



Brutus

2007-05-04, 6:15 pm

I was hoping to avoid that but I guess it is my only choice. Thanks for
your help!!

Dave

"Thomas A. Rowe" <tarowe@mvps.org> wrote in message
news:On5MyBjjHHA.5084@TK2MSFTNGP03.phx.gbl...
> No, as one would be server-side via ASP and the print function would be
> client-side JavaScript.
>
> What you can do, is post to the database, then return a custom
> confirmation page with a print button.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "Brutus" <brutus@freetidbet.net> wrote in message
> news:suadnS0qgMhMGKfbnZ2dnUVZ_vOlnZ2d@comcast.com...
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews