Forum

Welcome Guest! To enable all features please try to register or login.
novomak
#1 Posted : 05 March 2021 18:33:06(UTC)
novomak

Rank: Newbie

Joined: 01/02/2021(UTC)
Posts: 3

Spoštovani,

Potrebujemo ARES skript ali funkcijo za neposreden izvoz poročila FastReport report iz Pantheona v datoteko PDF brez preview in save file dialog. Na angleškem forumu je lani nekdo objavil funkcijo PrintExportToFile, za katero menim, da naredi tisto, kar potrebujemo, vendar priloga ne obstaja več.

Hvala naprej in lep pozdrav,
Stefan
SIMONKLEMEN
#2 Posted : 06 March 2021 08:17:38(UTC)
SIMONKLEMEN

Rank: Datalab

Joined: 24/04/2009(UTC)
Posts: 403

Zdravo,

v priponki vzorčni ares za izvoz računa v PDF. Koda je:

uses SysUtils, Classes, Forms, Dialogs, dlForms, dlDatabase, dlComponents;

var
Form: TMainModalForm;

begin
try
Form := dlFindDocTypeForm(GetDocTypeFromKeyView('1930000000001'));
Form.PrintExportToFile(Form,'c:\temp\racun.pdf','1930000000001','241');
finally
FreeAndNil(Form);
end;
end.

Na voljo pa je tudi funkcija, ki omogoča izvoz izpisa. Tu so parametri šifra izpisa in SQL poizvedbe:

procedure arExecutePrintExport(AcKey: string; ASQL: string; ASQLheader: string; ' +
'AFileName: string; AUpperCase: Boolean = False; ALog: Boolean = False; ' +
'APreserveEvents: Boolean = False; APrintOptimized: Boolean = False);

SimonKlemen
SIMONKLEMEN
#3 Posted : 06 March 2021 08:19:20(UTC)
SIMONKLEMEN

Rank: Datalab

Joined: 24/04/2009(UTC)
Posts: 403

Priponka.
File Attachment(s):
A000000 - Izvoz računa u datoteku.zip (3kb) downloaded 23 time(s).

You cannot view/download attachments. Try to login or register.
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-2025, Yet Another Forum.NET
This page was generated in 0.134 seconds.