Print an InkPicture in a datawindow.
- New
- How-to
- Ed Van Haren
- PowerBuilder
- Thursday, 2 January 2025 07:26 PM UTC
As recommended in this forum, I started using the Inkpicture object in a datawindow to replace an old OCX viewer. It seems to display TIFF blobs fine but I am having a few issues:
- We can zoom in and out using the built-in mouse and alt key but it doesn't seem to redraw all the time. I have scroll bars on the datawindow and have to scroll for the redraw to happen when the image size is bigger than the datawindow control size.
- I want to save a copy as a PDF and we normally do that by printing to the Microsoft Print to PDF printer. But when I print a datawindow with a InkPicture it views fine, but when I print, it doesn't print the image.
I have read other posts and some people recommend using a free open source product (imageMagic).
I was trying to use native PB and I am close to get it to work as we need (except for rotating). Does anyone know quick fixes for the issues above? Or do I have to abandon this approach altogether?
I will try and programatically do the scrolling and sizing so I can maybe force a redraw or scroll. But wanted to post here in case it was a quick solution.
Also, if imageMagic is free and works, does anyone have a sample to get me started?
Thanks,
Ed
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.