|
Rank: Newbie Groups: Member
Joined: 5/8/2020 Posts: 9
|
Hi All,
we try to get a capture of the whole page loaded into a WebControl. With the "Capture" Method of the inner WebView we are only able to get a capture of the current shown part of the page. Is there a way of capturing the whole web page?
Best regards Andreas
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Sorry about the delay. We have investigated this issue and confirmed it is a bug. We will fix it in our next build.
In our next build you should be able to capture outside of the visible area. However there are still other constrains that may cause capture to fail. For example, the entire capturing buffer must be in the bitmap format, as such if the area is too large, then you may run into out of memory error.
We will reply here again when the new build is ready.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we have posted a new build (2020.1.45) that should resolve this issue. You can download it from our download page. Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/8/2020 Posts: 9
|
Hi, thanks for the information. It works better now, but for long pages we just get a "null" from the capture method. Is there a limit of size the capture method will deliver as an image? E.g. this site is not captureable currently: https://www.wolterskluwer.de/service-kontakt/schriftenreihen/ahw/We use this code to try to capture the image: var webPageSize = webView.GetPageSize(); var image = webView.Capture(new System.Drawing.Rectangle(0, 0, webPageSize.Width, webPageSize.Height)); image is just "null" for the given page. Best regards, Andreas
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
That is exactly what we mentioned in our original reply ---- you should not rely on this feature to capture 1 to 1 rendering on the entire page for large pages. The capture feature relies on available screen memory buffer and this can vary greatly from system to system. This is similar to that there is a File.ReadAllBytes function that would allow you to read the entire file to a byte array, but the file system would support file size up to 4TB and most likely this function won't work on a 4TB file. Obviously you will have to change your application design to avoid needing to read such a large file into memory in its entirety. The same is for the Capture feature.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/8/2020 Posts: 9
|
OK understood. I just expected to see any OutOfMemoryException or something like that. Now we just get null as result, I just wanted to clarify this.
We tried to use another way, we tried to print the current view on a PDF printer, but your product told us, that this is not allowed and we should by another component from you. We will investigate if this is feasable for us to put the additional cost to be able to implement this feature in a then hopefully fully working way.
Thanks so far.
Regards Andreas
|
|