Auch,
Den below Code, ohne auf lb_test_bills, es zu überprüfen, versuchen arbeitete für mich.
n_ds lds_report_data_store
lds_report_data_store = VERURSACHEN n_ds
lds_report_data_store.DataObject = ls_datawindow_name
lds_report_data_store.SetTransObject (SQLCA)
ll_retrieve_return = lds_report_data_store. Zurückholen (ldt_report_date)
lds_report_data_store. Object.DataWindow.Print.Orientation = li_printer_paper_orientation
lds_report_data_store. Object.DataWindow.Print.Duplex = li_printer_simplex_duplex
lds_report_data_store. Object.DataWindow.Print.Paper.Size = li_printer_paper_size
lds_report_data_store. Object.DataWindow.Print.Filename = „c:\test _lib \ test_report.pcl“
lds_report_data_store. Druck ()
Beifall,
Rosh