473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to get entire form content for capturing form as image

I want to capture the full content of a form even if the form is too large. I want entire form content with in one image. that will be saved in the physical drive. Kindly help plz...
Jun 16 '07 #1
2 1454
kenobewan
4,871 Expert 4TB
Welcome to TSDN. Here is one way:
Expand|Select|Wrap|Line Numbers
  1. ' start internet explorer with parameter(1) as page 
  2. ' grab screen into picture001.jpg file name 
  3.  
  4. Set WshShell = WScript.CreateObject("WScript.Shell") 
  5. Set WshShell2 = WScript.CreateObject("WScript.Shell") 
  6.  
  7. Return = WshShell.Run("cmd /c del c:\upload\picture0?.jpg", 3) 
  8. Return = WshShell.Run("cmd /c del c:\upload\picture.jpg", 3) 
  9.  
  10. Set Args = WScript.Arguments 
  11.  
  12. Return = WshShell.Run("c:\progra~1\intern~1\iexplore.exe -k " & args(0), 3) 
  13.  
  14. WshShell.AppActivate "Internet Explorer" 
  15. WScript.Sleep 14000 
  16.  
  17. 'There are 6 levels of the JPEG compression. 
  18. ' jpgs = JPEG Superb 
  19. ' jpgh = JPEG High 
  20. ' jpgg = JPEG Good 
  21. ' jpgn = JPEG Normal 
  22. ' jpga = JPEG Average 
  23. ' jpgb = JPEG Bad 
  24.  
  25. WshShell2.Run("C:\Progra~1\Howies~1\HQScreen.exe 0 jpgs 24 picture c:\upload\ 1") 
  26. WScript.Sleep 1000 
  27. WshShell.SendKeys "%{F4}" 
  28.  
  29.  
  30. ' load the created picture 
  31. ' and resize 
  32. ' and save as "picture.jpg" 
  33.  
  34. Set ctrl = createobject("GflAx.GflAx") 
  35.  
  36. ctrl.enablelzw = True 
  37. ctrl.LoadBitmap "c:\upload\picture001.jpg" 
  38.  
  39. ctrl.Saveformat = 1 ' AX_JPEG 
  40. ctrl.ChangeColorDepth AX_ToTrueColors 
  41.  
  42. imageheight = ctrl.height 
  43. imagewidth = ctrl.width 
  44.  
  45. newheight = 250 
  46. newWidth = (newHeight * ctrl.Width) / ctrl.Height 
  47. ctrl.Resize newWidth, newHeight 
  48.  
  49. ctrl.savebitmap "c:\upload\picture.jpg" 
  50. set ctrl=nothing 
  51.  
  52. ' delete original picture001.jpg file 
  53.  
  54. Return = WshShell.Run("cmd /c del c:\upload\picture001.jpg", 3) 
Jun 18 '07 #2
Thank you for your reply. but i want the form as a image in .net windows application. Could u plz help me in this???
Jun 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most...
1
by: lawrence | last post by:
I'm trying to read up on the rfc's that govern form inputs. Much of what I'm reading is stuff I didn't know before and some of it is alarming. This one left with me questions: ...
4
by: phatnugs420 | last post by:
Hi all, i've been struggling with creating a form that lets you add an attachment and the attachment is sent via email.. I was wondering if recieving attachments in an md5 form is the only way to...
8
by: Du | last post by:
I'm trying to automate the upload process to yousendit.com, but the file size doesn't add up and yousendit.com keep rejecting my upload (it accepts the upload until the very end) I don't know...
4
by: Krishna Kumar | last post by:
Hai all, I am doing a project in .net and in that project I have a problem in capturing text from an image. i.e images like CAPTCHA images . which has inbuilt text with in the image.So,...
3
by: Dave | last post by:
Hey all, I have a problem and I can't find anything on the net to really address it. We have a program at work that has lots of numbers on the front of the form because it is a control program...
0
by: subirose | last post by:
Hi, For my web application I need to create an html input form form which I need to extract the entered data and also save the filled form as an image when the user submits the form. I have seen...
1
by: sberry | last post by:
I have an image proxy script I use to retrieve images from a remote server and store locally on the first request. On the second request (and all requests after) the image is returned from the...
0
by: shlim | last post by:
Currently I'm using VB.Net to perform a http/https multipart form post to a servlet. I'm able to perform the post using HttpWebrequest via GetRequestStream(). However, the servlet returned me with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.