Autor Beitrag
Böser Borstel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Mo 01.12.03 11:52 
Ich suche eine Komponente, mit der man PDFs drucken kann.
Am Besten wäre es wenn man eine Anzahl der Kopien angeben könnte.
Momentan benutze ich ShellExecute in einer Schleife. Wenn ich aber 20 Kopien haben möchte vergißt er einige andere. Kann man Shellexecute keine Anzahl übergeben? Kennt jemand ein besseres Verfahren? Shellexecute wird immer erst dann ausgeführt, wenn das Programm komplett in Nichtbenutzung ist. Kann man das ändern so das der Befehl gleich ausgeführt wird.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
while Anzahl > 0 do
begin
   ShellExecute(0, 'open', 'acrord32', PChar('/p /h ' + Datei), nil, SW_ShowNormal);
   Anzahl := Anzahl - 1;
end;

Hoffentlich kann mir jemand von euch weiterhelfen. Ich danke jedem der sich über dieses Thema gedanken macht.

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 01.12.03 12:07 
ich glaube es gibt auch eine activX control für den acrobat reader.
damit dürfte das wohl ohne weiteres gehen.

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
Böser Borstel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Mo 01.12.03 13:12 
Titel: PDF.OCX von AcrobatReader
Der Druck startet bei dieser ActiveX Komponente auch immer erst wenn das Programm nicht arbeitet. Es werden auch Druckaufträge vergessen.
Böser Borstel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Fr 12.12.03 14:43 
Titel: Suche: Komponente die PDF drucken kann
Suche: Komponente die PDF drucken kann und bei der man die Anzahl der Exemplare einstellen kann
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Fr 12.12.03 16:03 
ich würdsa dir so empfehlen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i:=1 to anzahl do 
begin 
   ShellExecute(0, 'print', nil, PChar(Datei), nil, SW_ShowNormal); 
end;


Der befehl macht halt das als wenn du aufs pdf rechte maus und dann drucken machst...

müsste funzen, hab das auf arbeit schonmal so gemacht

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Böser Borstel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Mo 15.12.03 08:22 
Titel: Zu langsam
Der Druckertreiber soll die zu druckenden Dateien in ein A5 - Format spoolen. Bei dieser Möglichkeit, die ich zuerst auch benutze stellte ich fest wenn ich die Schleife 100x durchlaufen werden soll, dann werden einige Druckaufträge vergessen und es ist einfach zu langsam.
Ich benötige eine Möglichkeit, der ich sagen in etwa Printer.Copies setzen kann. Gibt es sowas? Warum kann Shellexecute das nicht?

Böser Borstel
CodeWicht
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 90

Win98, WinXP
D6
BeitragVerfasst: Mi 17.12.03 07:00 
Hi,

probier doch mal Nishita's PDF Creation VCL v.2.0 bei torry.net.

_________________
The equal is true.
Böser Borstel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Mi 17.12.03 07:39 
Titel: Danke für den Tip
CodeWicht, mit dieser Komponente kann man ganz leicht PDF's erstellen, aber ich suche ja was womit ich bestehende PDF's drucken kann, bei der ich keine schleife für die Anzahl brauche.

Ich muß sagen können dieses PDF 3x drucken, aber so das ein Druckauftrag an den Drucker geschickt wird.

Böser Borstel