26. September 2006 13:22
26. September 2006 14:18
26. September 2006 14:37
A_Process Automation 'Adobe Acrobat 7.0 Type Library'.AcroApp
CREATE(A_Process);
26. September 2006 19:40
27. September 2006 07:32
27. September 2006 14:20
27. September 2006 20:21
mikka hat geschrieben:das Thema mit den PDF´s [...], dass es nur mit der Vollversion funktionieren würde (zumindest beim Drucken aus Navision heraus), ist evtl. bei dieser Problematik auch was dran?
CREATE(objShell);
IF NOT EXISTS(Filename) THEN EXIT;
SplitDirFile(Filename,Dir,File);
objFolder := objShell.NameSpace(Dir);
objFolderItems := objFolder.Items;
objFolderItem := objFolderItems.Item(File);
objVerbs := objFolderItem.Verbs;
i:=-1;
REPEAT
i+=1;
IF i<objVerbs.Count THEN
objVerb := objVerbs.Item(i);
UNTIL (STRPOS(UPPERCASE(objVerb.Name),'PRINT')>0) OR (STRPOS(UPPERCASE(objVerb.Name),'DRUCKEN')>0) OR (i >=objVerbs.Count);
IF i<=objVerbs.Count THEN BEGIN
objVerb.DoIt;
END ELSE
ERROR(Text104, Filename);
Name DataType Subtype
objShell Automation 'Microsoft Shell Controls And Automation'.Shell
objFolder Automation 'Microsoft Shell Controls And Automation'.Folder
objFolderItems Automation 'Microsoft Shell Controls And Automation'.FolderItems
objFolderItem Automation 'Microsoft Shell Controls And Automation'.FolderItem
objVerbs Automation 'Microsoft Shell Controls And Automation'.FolderItemVerbs
objVerb Automation 'Microsoft Shell Controls And Automation'.FolderItemVerb
Dir Text 250
File Text 250
i Integer
Position:=0;
REPEAT
temppos:=STRPOS(COPYSTR(Filename,Position+1),'\');
Position+=temppos;
UNTIL temppos=0;
IF Position>0 THEN BEGIN
Dir:=PADSTR(Filename,Position);
File:=COPYSTR(Filename,Position+1);
END ELSE BEGIN
Dir:='';
File:=Filename;
END;
Name DataType
Position Integer
temppos Integer