Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Viewing Background always black

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Viewing Background always black

Postby 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
rmurdock
 
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

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

Symply using the BackColor propertie:

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


ex:

Code: Select all
GdViewer1.BackColor = RGB(255, 255 ,255) 'White back color
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4227
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

background image always back

Postby 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 ?
rmurdock
 
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

Postby 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.
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4227
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Viewing Background always black

Postby 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
rmurdock
 
Posts: 3
Joined: Thu Sep 27, 2007 12:16 am

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

Robb,

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

Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4227
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest