1. SHAMEEM KAKKAD
  2. PowerBuilder
  3. Monday, 6 December 2021 06:18 AM UTC

Dear Appeon team,

 

I have a datawindow and I place a computed field for a png picture. But, While print preview it is showing perfectly but while take print png picture goiint out object border.

attachement herewith....

Attachments (2)
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 6 December 2021 13:02 PM UTC
  2. PowerBuilder
  3. # 1

Another remark:

If you set your datawindow units to pixels, you can see the size you have assigned in pixels to your 3 controls on the dw:

 

 

You'll see that you have assigned a width and height of 244x225, this has nothing to do with the size of your images which are 160x120. You could maybe make the "picture (computes)" controls twice as big, but they'll have to have a corresponding ratio to the real images.

Also, just as extra information: you don't really have to use computed columns and the Bitmap() function. You could instead use 3 char columns to which you assign the file name and mark "Display as picture", but that's not really your problem in this case:

Comment
  1. SHAMEEM KAKKAD
  2. Monday, 6 December 2021 13:11 PM UTC
I used too small png file... it is failed

I used picure control.... it is failed

I used column ... it is failed..



But this issue only for png format and no any jpg, bmp or gif. I don't know it is programatical issue or other windows issue. Same datawindow using my costomers in more than 400 PCs. But this issue only for few PCs.

  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 6 December 2021 12:43 PM UTC
  2. PowerBuilder
  3. # 2

I think there's something wrong with the saved images: When I open them in paint they are "cropped" to start with:

 

Comment
  1. SHAMEEM KAKKAD
  2. Monday, 6 December 2021 12:53 PM UTC
No sir, If I use any png file, same effect.... (cropped)..

I tried it in the paint, but I am getting without any problem.
  1. Helpful
  1. Miguel Leeuwe
  2. Monday, 6 December 2021 13:18 PM UTC
Okay, my images (the 2 images ones you added to the sample app) are a bit cropped below. Nevertheless, when I try your application, even when using the same picture sizes for the controls that you do, I don't have any problem when printing to my PDF printer.

Maybe/Probably it's a good idea to check the printer settings that the users who are having the problems might have. Maybe they're not using the correct driver or maybe they have the paper size set to some very small size. Also check on the margin settings.

regards.
  1. Helpful
  1. SHAMEEM KAKKAD
  2. Monday, 6 December 2021 14:10 PM UTC
Ok. let me check and i will update you..
  1. Helpful
There are no comments made yet.
SHAMEEM KAKKAD Accepted Answer Pending Moderation
  1. Monday, 6 December 2021 12:32 PM UTC
  2. PowerBuilder
  3. # 3

Ok...  I attached here with the pbl and pictures

Attachments (3)
Comment
  1. Miguel Leeuwe
  2. Monday, 6 December 2021 12:34 PM UTC
Thanks, I'll have a look.
  1. Helpful
  1. SHAMEEM KAKKAD
  2. Monday, 6 December 2021 12:34 PM UTC
Thanks
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 6 December 2021 11:43 AM UTC
  2. PowerBuilder
  3. # 4

Hi Shameem,

Can you make a small sample application for us to reproduce the problem and see what's going wrong?

regards

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.