1. Steve Wilson
  2. Valentina Reports ADK
  3. Samstag, August 04 2018, 11:12 AM
  4.  Abonnieren via E-Mail
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?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Steve Wilson Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
  • Seite :
  • 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. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories