1. Stefan Zehner
  2. PowerBuilder
  3. Thursday, 5 December 2024 20:18 PM UTC

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

 



There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.