Форум

Welcome Guest! To enable all features please try to register or login.
HD_prijavio
#1 Posted: : 18 April 2011 10:10:00(UTC)
HD_prijavio

Rank: Datalab

You have been a member since:: 14/08/2009(UTC)
Posts: 1

Was thanked: 2 time(s) in 2 post(s)
Bok,

treba mi pomoć u vezi sa FastReportom.
Evo problema:
1. na report moram zalijepiti sliku, put i ime fajla čitam u nekom polju u bazi. Na reportu koristim funkciju:
Picture1.Picture.LoadFromFile('c:\....\ime_fajla.jpg')
To je ok, ali nekad moram brisati tu sliku. Ne mogu naći koja je metoda za brisanje. Probala sam sa Clear, ClearPicture, Erase, Delete, ali nema toga. Gdje mogu naći upute za tfrxPictureView sa svim metodama?
2. Imam dvije slike, koje ispadaju jako ružne u fast reportu. Šaljem ih u attachu. Probajte ih loadati u bilo koji report u objekt Picture.
3. za točku 1 bi trebala neku funkciju kao što je FileExists, da mogu testirati prije nego što zovem LoadFromFile. U fastreport ne mogu napisti uses SysUtils. Da li postoji neka slična procedura?

Pozdrav

Hvala
Kristina

PS. ne moram spominjati da mi je to hitno, vjerojatno je svima hitno :-)
HD_odgovorio
#2 Posted: : 18 April 2011 10:10:00(UTC)
HD_odgovorio

Rank: Datalab

You have been a member since:: 14/08/2009(UTC)
Posts: 0

Was thanked: 1 time(s) in 1 post(s)
Pozdrav,

1. Brisanje slike:
Picture1.Picture := nil;

2. slike imaju preveliku rezoluciju za fastreport.

3. Umjesto provjeravanja postojanja datoteke upotrebljava se try except blok. Ako se postavljanje slike iz bilo kojeg razloga ne može izvršiti, tada program ide u except dio.

procedure Picture1OnBeforePrint(Sender: TfrxComponent);
begin
try
Picture1.Picture.LoadFromFile(`C:\WINDOWS\web\Wallpaper\Ascent.jpg`);
except
end;
end;

HD_odgovorio
#3 Posted: : 18 April 2011 10:10:00(UTC)
HD_odgovorio

Rank: Datalab

You have been a member since:: 14/08/2009(UTC)
Posts: 0

Was thanked: 1 time(s) in 1 post(s)


B.P.
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Orange-Grey Theme Created by Ingo Herbote (WatchersNET.de)
Powered by YAF 1.9.6.1 Under DNN | YAF © 2003-2021, Yet Another Forum.NET
This page was generated in 0,122 seconds.