CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Capture grid from page and email it

Print topic Send  topic

Author Message
Waspman

Posts: 948
Posted: 01/27/2011, 12:14 PM

I've done this before (many years ago) can't remember how to do this anyone any ideas?

Just capture grid from page and stick it in an email ;-)
_________________
http://www.waspmedia.co.uk
View profile  Send private message
S_A

Posts: 29
Posted: 02/03/2011, 10:47 PM

Wish I could help, but I'm also looking for the same thing...any ideas yet? :-)
View profile  Send private message
TheunisP

Posts: 342
Posted: 02/04/2011, 12:12 AM

I had a quick peek seems the page content - that is shown at the end is stored in the MainHTML var - so I suppose using an event after the page is done e.g. before output or unload you can grab the whole of the page and mail it?
View profile  Send private message
Waspman

Posts: 948
Posted: 02/04/2011, 12:37 AM

Yeah that sounds about right, but I just need one grid. I'll have a mess around and let ya know...t
_________________
http://www.waspmedia.co.uk
View profile  Send private message
Waspman

Posts: 948
Posted: 02/04/2011, 5:24 AM

OK this is how I did it:

I created a separate page (grid only) that uses the same filters as the main page, but took off any CSS styling so it would work in an email.

In the before output event of this page(separate one) I saved the MainHTML to a session variable.

Then on the main page where the order is approved I "iframed" the page into a 0 by 0 iframe with no border so it can't be seen.

Then when I build the email after the approval form is submitted I call the session as part of the body and I get a perfectly laid out table with all the items on it.


_________________
http://www.waspmedia.co.uk
View profile  Send private message
Waspman

Posts: 948
Posted: 02/04/2011, 7:39 AM

or 0 pixel by 0 pixel iframe
_________________
http://www.waspmedia.co.uk
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.

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.