Viewing Background always black

Discussions about document viewing.
Post Reply
rmurdock
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

Viewing Background always black

Post by rmurdock » Thu Sep 27, 2007 2:32 am

Greetings:

Using the sample application that comes with the GdViewer, the viewing area always has a black background upon loading of the image regardless of how you set the control.

If the image were to fit exactly in the control, then its fine because there is no background exposed, however, if you want the image to fit the control via one axis, then there will be a black background exposed in the other axis.

QUESTION:

How can I change this behavior to create either a white or transparent background that will remain in effect even after the image is loaded ?

Please advise.

Thanks,

Robb Murdock

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Fri Sep 28, 2007 10:35 am

Symply using the BackColor propertie:

https://www.gdpicture.com/references/gdv ... Color.html


ex:

Code: Select all

GdViewer1.BackColor = RGB(255, 255 ,255) 'White back color

rmurdock
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

background image always back

Post by rmurdock » Fri Sep 28, 2007 9:49 pm

OK,

I was able to change the background through procedural code within the sample application and it worked correctly.

The problem for me appears to be because the control is being used within a report writer (Data Dynamics Active Reports 2.0).

If I set the background to Opaque, then the image does not show. Only the background shows. It is as if the image is behind the background.

I can only use the Transparent Mode in order to see the image; and then there are the black bars between the image and the remaining display area of the control.

Perhaps these black bars are un-related to the background.

Any ideas how I can get rid of the black bars ?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Tue Oct 02, 2007 6:35 pm

Hi murdock,

Your problem is due to the fact that Data Dynamics Active Reports 2.0 doesn't seems to accept object using AutoRedraw graphic output.

However into the next release I will add a ForcePictureMode property. I think that using this mode the Data Dynamics Active Reports Toolkit will be able to display a GdViewer object with an opaque back style mode.

Best regards,

Loïc Carrère
Last edited by Loïc on Sun Oct 07, 2007 8:05 pm, edited 2 times in total.

rmurdock
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

Viewing Background always black

Post by rmurdock » Sat Oct 06, 2007 9:33 pm

OK,

We will go into production as-is and wait for the next release. (Hopefully soon!)

Thanks for addressing this.

Robb

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Mon Oct 08, 2007 1:54 pm

Robb,

The GdViewer 3.1 release is available:
https://www.gdpicture.com/products/gdvie ... ctivex.php

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest