Good morning,
in our application we need to print in the background and the datawindow used contains colored text objects.
Until Release PowerBuilder 2022 with runtime 22.0.0.1900 everything worked perfectly.
Now we have moved on to Release PowerBuilder 2022 R2 with runtime 22.1.0.2819 the product print is only in black and white using datastore.
Attach code example:
datastore ds_report
ds_report = Create datastore
ds_report.DataObject = 'datawindow_name'
ds_report.SetTransObject(sqlca)
ds_report.retrieve()
if ds_report.RowCount() > 0 then
ds_report.Modify("DataWindow.Print.Color=1")
ds_report.Print( False )
end if
destroy ds_report
Can anyone help me, thanks