Git Product home page Git Product logo

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Thanks for the advice!

Original comment by [email protected] on 17 Nov 2011 at 1:11

from open-webkit-sharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
New revision is available

Original comment by [email protected] on 27 Nov 2011 at 9:15

from open-webkit-sharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.