Crystal Reports: afbeelding displayen in formule

Status
Niet open voor verdere reacties.

MiKeZZa

Gebruiker
Lid geworden
18 mrt 2006
Berichten
77
Is het mogelijk om in Crystal Reports een afbeelding weer te geven als een bepaald databaseveld een bepaalde waarde heeft?

Je kunt bijv. wel dit doen:

If {dbveld} > 10000 then 'tekst' (ps: dit is uit de losse pols geschreven dus klopt vast neit syntaxtisch gezien)

Maar kun je dan ook ipv tekst een afbeelding weergeven?
 
Quote;

BLOB (Binary Large Object) fields
A BLOB field is a database field whose data consists of Binary Large Objects—such as bitmap graphics, images, OLE objects, metafiles, and so on. Inserting a BLOB field into your report allows you to access these binary objects as you would other data types.

In general, Crystal Reports allows you to access BLOB fields containing:

Device-independent bitmaps (DIB).
JPEG, TIFF, or PNG images.
In addition, if your data resides in a Microsoft Access database, then Crystal Reports enables you to report on BLOB fields containing OLE 1 and 2 objects and metafiles.

You insert BLOB fields as you would any other database field. For details, see To insert a database field.

A BLOB field object differs from other database field objects in that it offers options to control cropping, scaling, and sizing—just like an inserted picture or OLE object. To access these options, right-click the BLOB field object, select Format Graphic from the shortcut menu, and click the Picture tab.

Note: To retain the ability to activate and edit an OLE object with its server application, you should insert the object into your report independently, either by linking or by embedding, rather than inserting it in a BLOB field. For more information about inserting linked and embedded OLE objects, see Inserting OLE objects into reports.


Unquote

Wellicht heb je er wat aan. Je hebt dus databasevelden nodig die het plaatje bevatten.
 
Quote;

BLOB (Binary Large Object) fields
A BLOB field is a database field whose data consists of Binary Large Objects—such as bitmap graphics, images, OLE objects, metafiles, and so on. Inserting a BLOB field into your report allows you to access these binary objects as you would other data types.

In general, Crystal Reports allows you to access BLOB fields containing:

Device-independent bitmaps (DIB).
JPEG, TIFF, or PNG images.
In addition, if your data resides in a Microsoft Access database, then Crystal Reports enables you to report on BLOB fields containing OLE 1 and 2 objects and metafiles.

You insert BLOB fields as you would any other database field. For details, see To insert a database field.

A BLOB field object differs from other database field objects in that it offers options to control cropping, scaling, and sizing—just like an inserted picture or OLE object. To access these options, right-click the BLOB field object, select Format Graphic from the shortcut menu, and click the Picture tab.

Note: To retain the ability to activate and edit an OLE object with its server application, you should insert the object into your report independently, either by linking or by embedding, rather than inserting it in a BLOB field. For more information about inserting linked and embedded OLE objects, see Inserting OLE objects into reports.


Unquote

Wellicht heb je er wat aan. Je hebt dus databasevelden nodig die het plaatje bevatten.

Dat wil ik dus niet, ik wil een afbeelding van een normale locatie weergeven als een bepaald db-veld een bepaalde waarde bevat. Dit omdat ik geen wijzigingen in de db kan maken maar slechts kan rapporteren.

Edit: ik ben er uit. Je klikt op:
Format graphic, vinkt Suppress aan en maakt een formule aan:
IF {dbveld} <> 'WAARDE' THEN True ELSE False en klaar :)
 
Laatst bewerkt:
Ah zo..meer een "aan/uit" verhaal.

Maar evengoed opent jouw oplossing voor mij weer een nieuwe deur naar de door mij gezochte oplossing....tx! :)
 
Ah zo..meer een "aan/uit" verhaal.

Maar evengoed opent jouw oplossing voor mij weer een nieuwe deur naar de door mij gezochte oplossing....tx! :)

Gelukkig dat ik ook kan helpen! Mocht je me nou écht gelukkig willen maken help je me 'even' in mijn andere topic!
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan