1. Steve Wilson
  2. Valentina Reports ADK
  3. Saturday, August 04 2018, 11:12 AM
  4.  Subscribe via email
I'd like to be able to show preview of a report on PureBasic's CanvasGadget() in the same way you can with Xojo on a Canvas and I'm pondering how that can be achieved.

PureBasic has a CatchImage(imageID,*buffer,size) command that enables you to grab an image from a memory address. It supports catching images in the following formats:
BMP
JPEG
PNG
TIFF
TGA
GIF

Is it possible for Valentina to put a specified page from a report into a buffer in one of these formats so PureBasic can grab it?
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hello Steve,

No, currently, the Valentina C ADK doesn't have the Report_PrintToBuffer function.
So the only way is to use Report_PrintToDisk function to print one page as PNG to a temporary file and read it back.

Will it work?
We'll try to add Report_PrintToBuffer in one of the future releases.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Steve Wilson Accepted Answer
PureBasic has the LoadImage(imageID,Filename$) command so your suggestion should work but if you could consider including Report_PrintToBuffer in a future release that would be great.

Thanks, Sergey.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
  • Page :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories