Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab
Client-Side Screen Grab Client-Side Screen Grab
Client-Side Screen Grab
Go Back  Xtreme Visual Basic Talk > > > Client-Side Screen Grab


Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2006, 05:40 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default PointToScreen in Web Application


In a web application, how can I find the "PointToScreen" location of a tag item?
Reply With Quote
  #2  
Old 10-14-2006, 08:00 AM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

i've moved your thread to the web programmin forum. hopefully we can help find a solution down here.

can you give any more details of what you're looking for?

Are you using Absolute Positioning?
Are you trying to figure this out on the Client Side or Server side?
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #3  
Old 10-16-2006, 08:56 AM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

This Web application is written in ASP.NET, with VB.NET as the source code language. I'm trying to do screen grabs of a particular item in the current web document.

The Graphics.CopyFromScreen() isn't working for me, any ideas or suggestions for the ASP.NET version of a screen grab?

Also, finding a partictular location to copy the screen from, a PointToScreen( ) version for ASP.NET.

A little background of PointToScreen is that it's apart of the Windows.Forms.Control Class. Is there any kind of bridge from that to the Web.UI.WebControls Class?

Thanks in advance for everyone’s help and contribution.
Reply With Quote
  #4  
Old 10-16-2006, 09:00 AM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

ASP.NET runs on the server. There is no way to take a screen shot of the client.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #5  
Old 10-16-2006, 09:02 AM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

wayneph :
Thanks for replying. I posted another statement to hopefully be more specific. But, to answer your questions... No, I'm not using Absolute Positioning, Should I? Do you think it'll be easier to do a screen grab from that kind of location?
I am trying to do this process on the Server Side. What I'm trying to do is have the user modify a Flash Image, then press a button to export the image to a personalized pdf. The screen grab of the flash object is seeming to be difficult.

Any thoughts?
Reply With Quote
  #6  
Old 10-16-2006, 09:21 AM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

Alright I have a new idea, what do you think about this one...

Have a javascript take the screen grab. If I use absolute positioning I could fine-tune the location of the flash object. And there we go, my screen grab of the custom flash object done on the client side...

Do you think this solution is more probable?
Reply With Quote
  #7  
Old 10-16-2006, 09:51 AM
Zumwalt Zumwalt is offline
Contributor
 
Join Date: Sep 2003
Location: Tampa, FL
Posts: 474
Default

Why are you bothering with screen capture when your data is client side already. Just walk the document object model to find what you are looking for.

In a web application there are 2 components, what happens on the server and what is displayed as the outcome to the client. What you have available to you is on the client only and you can get anything that is available to the client by the HTTP DOM.

Start there.
Reply With Quote
  #8  
Old 10-16-2006, 10:18 AM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

Zumwalt,
Thanks for your reply. Walking through the DOM wouldn't be necessary if I use, document.getElementById('FlashObject'). Correct? But even still, once I do have the object node located, I could extract the position of that object in the browser. But how could I extract the visual aspect of the fash object? That is why I've been going down the screen-grab route. Is there something more to the DOM that I'm missing?
Reply With Quote
  #9  
Old 10-16-2006, 12:16 PM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

You can't grab the "visual aspect" of the flash image. JavaScript doesn't have the power to handle things like that.

The easiest thing to do, is going to keep track of what the user does in the flash object and recreate it on the server.

i.e.
Line (1,1) to (3,3)
Line (3,1) to (1,3)

In essence the user would have an "X" on the screen, but it is really just two lines. Then you can use the server side to recreate an image or pdf.

Unfortunately, I don't know a lot about how Flash Forms work. I've never had the need to use them to figure out how data is actually processed.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #10  
Old 10-16-2006, 12:34 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default Client-Side Screen Grab

I previously posted a thread and, with the help of this community, have narrowed down a question. In doing so, the previous thread Title no longer represents the current question. Hence the creation of this thread.

I'm trying to grab the visual graphic, user defined flash object located on a web application I'm building. I want to grab this graphic and be able to use it as an image for a custom pdf the user will be creating. Because it's a flash object I am thinking the best way would be to do a screen grab of this object and to use that screen grab as the image I'm trying to obtain.

I first tried to do this as a server-sided ability, but have failed due to the realization that the server can't go out and grab a client's screen. consequently, the desire to do this on the client-side's machine. This is where I'm currently at. I've searched high and low and haven't found anything relating to this topic.

Any thoughts??
Reply With Quote
  #11  
Old 10-16-2006, 12:36 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

Thank you very much for your help. I started a new thread on this topic because this conversation is starting to diverge from the original thread title. I will try to see if I can recreate the flash image on the server... That might be the way to go.
Thanks again!
Reply With Quote
  #12  
Old 10-16-2006, 12:48 PM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

I merged the threads back together, because anyone that looked at the second one would be confused with out the history. (I did keep the new title...) The title isn't near as important as keeping a single discussion.

That being said, JavaScript can't do what you're looking for. It just wasnt designed for that. About the only thing I think might work, would be an ActiveX control, or possibly a Java Applet.

However, even in those cases, you wouldn't be taking a screen shot. You'd probably want to work with the control directly. Unfortunately, I haven't used them in the past, so I won't be a lot of help in that area.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #13  
Old 10-16-2006, 12:57 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

I did a quick search on ActiveX Controls, and It does look like that might be the way to go. I'll continue looking in that direction. Thanks very much for all your help.
Reply With Quote
  #14  
Old 10-16-2006, 12:58 PM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

Just be careful. ActiveX is an Internet Explorer only technology...
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #15  
Old 10-16-2006, 01:06 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

Oh bummers, really!? Hmmph.... Do you think there might be a way to have the server maintain the flash object, and all transactions done to it are all server requests and what is returned is the image done to the flash object?

The only problem with that, that I can think of, is the image file name. For multiple users there might be a conflict of naming, but I am sure I can find a work-around for that...

But, do you think something like that is possible. If so, how do you think I could approach that?
Reply With Quote
  #16  
Old 10-17-2006, 07:25 AM
wayneph's Avatar
waynephClient-Side Screen Grab wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

Again, I don't know exactly what you're going for so I can only make blanket suggestions. Here's how I might approach it...

Using ASP.NET you can maintain user information in Session Variables. You may be able to store your information there. Using Ajax (see ajax.asp.net if using .NET 2.0) you can actually send each step back to the server, and maintain the image on the fly.

Since I haven't use flash for anything like this, or at all in the last 5 years, I really don't know how the Flash would interact with it. I know it can, I just don't know how.

But that way you can use Flah for teh rich environment on the front, and ASP.NET on the server to create your files.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab Client-Side Screen Grab
Client-Side Screen Grab
Client-Side Screen Grab
 
Client-Side Screen Grab
Client-Side Screen Grab
 
-->