Comments (17)
Thanks for the detailed issue report. I will do my best to fix this as soon as
possible but the problem is that I don't own a printer. Maybe it is a problem
inside the PrintManager.cs class. I will look into it further.
Original comment by [email protected]
on 17 Nov 2011 at 10:03
- Changed state: Accepted
from open-webkit-sharp.
Hi,
The easiest way to test is to download the bullzip pdf printer or attempt to
print the page to a microsoft xps file which both reproduce the error without a
printer.
Cheers,
Ben
Original comment by [email protected]
on 17 Nov 2011 at 11:21
from open-webkit-sharp.
Thanks for the advice!
Original comment by [email protected]
on 17 Nov 2011 at 1:11
from open-webkit-sharp.
Hi,
I have tried your latest build Version 2.1(r55) and unfortunately it is still
generating and exception when attempting to print or generate a print preview.
This seems to be due to a divide by zero exception in the
_webFramePrivate.setInPrintingMode(1, ref hdc); on line 70 of PrintManager.cs.
Original comment by [email protected]
on 25 Nov 2011 at 9:06
from open-webkit-sharp.
I applied a patch to fix this issue but I am not sure that it is going to work.
I modified this file:
http://code.google.com/p/open-webkit-sharp/source/browse/Source/OpenWebKitSharp/
PrintManager.cs
Download the above and add it to your source. Then build the library and update
it in your project. Please when you debug, if the same error occurs tell me
what the values of _RemotableHandle hdc are (the int values inside the object)
Original comment by [email protected]
on 26 Nov 2011 at 11:14
from open-webkit-sharp.
I have tried applying the patch to the latest version but the same divide by
zero exception still occurs.
Some example values of the hdc are as follows:
fcontext = -1558111167
u:
hInproc = 40
hRemote = 40
fcontext, hInproc, and hRemote change with each execution
hInproc always seems to be equal to hRemote
Original comment by [email protected]
on 26 Nov 2011 at 3:03
from open-webkit-sharp.
I need to find a way to convert the _remotableHandle to a IntPtr and opposite
in order to make printing operations work but _remotableHandle is a bit strange
and although it is a handle, the conversion fails. Maybe I can find a way to
convert the _remotableHandle to int within the interop library.
Original comment by [email protected]
on 26 Nov 2011 at 3:53
from open-webkit-sharp.
I made another change for you to test it. Please download PrintManager.cs again
if you want and rebuild.
Original comment by [email protected]
on 26 Nov 2011 at 6:33
from open-webkit-sharp.
The latest version unfortunately still gives the same divide by zero error with
the latest version of PrintManager.cs
Some example values of the hdc are as follows:
fcontext = 0
u:
hInproc = -1574886399
hRemote = -1574886399
fcontext is now always zero
hInproc always seems to be equal to hRemote
Original comment by [email protected]
on 27 Nov 2011 at 12:21
from open-webkit-sharp.
OK Now I went deeper into WebKit and changed some interfaces on the Type
Library. I changed all HDCs to ints so that it does not ask for
_remotableHandle. I will commit the revision in a minute from now
Original comment by [email protected]
on 27 Nov 2011 at 9:10
from open-webkit-sharp.
New revision is available
Original comment by [email protected]
on 27 Nov 2011 at 9:15
from open-webkit-sharp.
Ok I have just checked out and compiled the new version. I have a slightly
different error now.
When I attempt to print I get an exception on line 75 with all the public
elements of "_printGfx" giving an "InvalidOperationException - Object is
currently in use elsewhere."
Original comment by [email protected]
on 27 Nov 2011 at 11:32
from open-webkit-sharp.
Thanks for the info. I will inform you if I find anything else that I can do.
Original comment by [email protected]
on 28 Nov 2011 at 3:11
from open-webkit-sharp.
In the latest revision I fixed this problem but the Print Preview shows blank
pages and I don't know if printing works. The dialogs now show up without
exceptions.
Original comment by [email protected]
on 29 Nov 2011 at 5:15
from open-webkit-sharp.
Thanks for the update I have just checked the it and it appears to be giving me
some exceptions in the WebUIDelegate.cs folder due to
webViewHeaderHeight(WebView WebView) and webViewFooterHeight(WebView WebView)
not being implemented.
As these functions are supposed to return a float I tried changing them
slightly just to return an arbitrary number (I used 100 for both). The print
and print preview pages then display without exceptions but all the pages are
blank without any content but it seems like a good step in the right direction.
Original comment by [email protected]
on 30 Nov 2011 at 12:41
from open-webkit-sharp.
Maybe these functions are the key to success then. I will try to do this.
Original comment by [email protected]
on 30 Nov 2011 at 3:35
from open-webkit-sharp.
Hackish printing is now used
Original comment by [email protected]
on 30 Dec 2011 at 11:24
- Changed state: Fixed
from open-webkit-sharp.
Related Issues (20)
- event "touchstart" is not support
- Cant type in WebKitBrowser
- THe Deployed Project wont execute in windows 7 x64 bit but works fine in x86 " http://code.google.com/p/open-webkit-sharp/downloads/detail?name=OpenWebKitSharp%203.0.1.0023.rar "
- Startup takes too long
- window.URL.createObjectURL not supported
- Is there any way to set a stream to browser to show to content of stream?
- The type or namespace name 'JSCore' does not exist in the namespace 'WebKit' ( HOT 2
- How I can get chrome browser object inside winform
- How to read javascript return value.?
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. HOT 1
- FileReader in JavaScript is not supported?
- openwebkitsharp.dll is not .net module HOT 1
- not working in 64 bit operating System HOT 1
- OpenWebKitSharp.dll .Net 4.0 and .Net 2.0 files are identical
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- How to click on a link using Webkit Browser HOT 1
- Problem while connecting with website
- how can i get cookies from a logined website
- Print() method throws error: can't find file (extra "\" in filename)
- fail to use OpenWebKitSharp 3.0.1.0023
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-webkit-sharp.