 |
|
 |
Thanks for the superb code. I was trying to figure out on how to go about breaking into multiple pages for TIFF if my HTML source detects a <br style="page-break-before: always;" />
Thanks in advise.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I am using visual basic 6 and I need a way to read internet explorer text or word text or any text that drawn on the forms with TextOut od vb labels and many thanks to the replyers and the developers of the site ------- Sorry for my English I am not English man
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This is great but can it be integrated to a web page?
like a button with a define path... to save the page as image?
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
it creats a image file of small html page. but when the file is very big its create half black screen. can u help me out.
gtytjuyju
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I need to convert html to image. I tried your code .Its working properly. Thank you so much for providing this helpful code.
I am trying to develop the same in C#.net Web Application. If you have any suggessions or hints ,plz help me...
Thanks...
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
I am using parts of your code in an application to create a powerpoint presentation. When I run your code and my code the height of the documents aren't the same. In my code it is smaller which cuts off the picture, in your code it doesn't. I've set a breakpoint at: scrollHeight = formDefault.WebBrowser1.Document.Body.ScrollRectangle.Height and scrollWidth = formDefault.WebBrowser1.Document.Body.ScrollRectangle.Width.
I am stumped as to why in different apps the height comes up different, thought the widths are the same. I've gone through both pieces of code and stepped through and can't seem to find anything different. Would you happen to have any ideas?
thanks,
jeff.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
I have been Googling all morning for something like this! Great Work, simple to use, and absolutely fantastic job!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I am using:
--- OS: Vista Business 2GB RAM VS: Microsoft Visual Studio 2005 Version 8.0.50727.867 (vsvista.050727-8600) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Version 8.0.50727.867 ---
I get this error:
---- System.InvalidCastException was unhandled Message="Conversion from string "" to type 'Boolean' is not valid." Source="Microsoft.VisualBasic" StackTrace: at Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) at Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(Object Value) at WebCapture.formDefault.formDefault_Load(Object sender, EventArgs e) in C:\Users\VistaDevAdmin\Documents\Visual Studio 2005\Projects\WebCapture\formDefault.vb:line 135 at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) at System.Windows.Forms.Control.SetVisibleCore(Boolean value) at System.Windows.Forms.Form.SetVisibleCore(Boolean value) at System.Windows.Forms.Control.set_Visible(Boolean value) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at WebCapture.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() ---
Any ideas?
Thank you for your help.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Error here
checkAutoOverwrite.Checked = getLastRun("AutoOverwrite") I replace by this code:
'LastRun.AutoOverwrite If getLastRun("AutoOverwrite").ToString().Length > 0 Then checkAutoOverwrite.Checked = True End If
It works fine.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi nice code but can u help me how can i copy a source code in txt file and then later change the extension for example source.txt to source.html to view the page
http://www.codeproject.com/asp/gethtmlsource/gethtmlsource_src.zip i downlaoded that file but its a asp page i want to use a it in my application
khurram saddique
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello,
I can see that when the web pages you want to capture tries to open a popup the image saved is blank.
I tried to play with the NewWindow and CancelEventHandler and even if I succeed in not getting the popup I am still having a blank image at the end. Do you have any suggestions?
Another thing is when you load pages that contains other blocks loaded from other websites the capture do not contain all the blocks. how can we 100% sure that the web page is loaded when going to DocumentCompleted event?
Regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi, is useful artical. Sometime, I thought, is it possible to capture the whole page so I can show my client the full page. Now it's possible.
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Wow, the interface and the functionality are much better than the first version. I really like the interface. Keep up the good work.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
This utility is really useful. But, how to make this work to capture the pages which open within the frames ?
Our website uses session values to check the page validity, so it does not allow to directly type the page name in the address bar too. It will be really useful if i can capture the page within frame.
Thanks.
Vasanth
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I think it is possible using some extra javascript or VB.net code. If possible, can I have the webpage you require, so I can do some test and if successful, I will post the code.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
instead of getting a page thru a specified url, would it be possible to get the page currently loaded in the browser (IE/FF plugin) ?
also, you should let the user choose in which format (BMP, JPG, PNG, GIF, etc.) he want the capture to be saved in...
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Try using Reflector and check the code out for DrawToBitmap. Don't know if it works cross process though.
You would need to also get the window handles for the control which you want to capture.
www.wickedorange.com
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |