9. Juni 2009 14:50
9. Juni 2009 15:23
9. Juni 2009 15:50
IF Variable = TRUE THEN BEGIN
Artikelposten.SETFILTER(Artikelposten.Postenart, 'Abgang|Umlagerung');
Artikelposten.SETFILTER(Artikelposten.Lagerortcode,'<>*&<>*');
Artikelposten.SETFILTER(Artikelposten.Menge,'<0');
IF Artikelposten.FIND('-') THEN REPEAT
variable := variable + Artikelposten.Menge;
UNTIL Artikelposten.NEXT = 0;
END;
9. Juni 2009 16:07
9. Juni 2009 16:10
IF "mit Dateiausgabe" THEN BEGIN
CREATE(xlApplication);
xlApplication.Visible := TRUE;
xlApplication.Workbooks.Add();
xlWorkSheet := xlApplication.ActiveSheet;
xlWorkSheet.Name := 'Frame_' + FORMAT(TODAY);
xlWorkSheet.Select;
xlWorkSheet.Range('A1:' + 'A' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('B1:' + 'B' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('C1:' + 'C' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('D1:' + 'D' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('E1:' + 'E' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('F1:' + 'F' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('G1:' + 'G' + FORMAT(600)).NumberFormat := '@';
xlWorkSheet.Range('A1').Value := 'Arikelnummer';
xlWorkSheet.Range('B1').Value := 'Postenart';
xlWorkSheet.Range('C1').Value := 'Menge';
xlWorkSheet.Range('D1').Value := 'Lagerort';
xlWorkSheet.Range('E1').Value := 'Lagerfach';
xlWorkSheet.Range('F1').Value := 'Buchungsdatum';
xlWorkSheet.Range('G1').Value := 'Kumuliert';
xlWorkbook := xlApplication.ActiveWorkbook;
xlSheets := xlWorkbook.Worksheets;
z:=2;
END;
9. Juni 2009 16:15
9. Juni 2009 16:24