Hi,
I'm using Powerbuilder 2019R2 and are currently having an issue to print an notes rtf data-window in a report.
Field in SQL-Table: mainthistorynote.notes (nvarchar(MAX), allow nulls = yes)
The field is working in the applications print preview for this report:
=> The image is properly displayed
Main DataWindow = d_mainthistory_print, sub DataWindow = d_mainthistory_print_nested_rtf
see attached file "d_mainthistory_print.txt"
The field is not working in the applications print preview for this report:
=> Instead of the showing the image, the character string is shown
Main DataWindow = d_maintworkorder_print, sub Datawindow = d_mainthistory_print_nested_rtf
see attached file "d_maintworkorder_print.txt"
In the sub data window "d_mainthistory_print_nested_rtf" I can see that there is code that is considering
Bitmap(f_getappdir() + "MHN-" + String (mainthistorynoteid))
f_getimagesize("MHN-" + String(mainthistorynoteid))
Long(mid(c_imagesize, pos(c_imagesize,"/")+1))
Long(left (c_imagesize, pos(c_imagesize,"/") -1))
I assume that the root cause for this is one of the below 2 issues:
- issues with data criteria passed to the RTF nested datawindows.
- issue with the structure of the RTF nested datawindow
Thank you so much for your help.
Best regards,
Stefan