Print Windows Form
Moderator: Rathinagiri
Print Windows Form
Working Example to Print Windows Form
- Attachments
-
- PrintForm.rar
- (19.56 KiB) Downloaded 854 times
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
Re: Print Windows Form
Thank you, Esgiciesgici wrote:Thanks Dave
Successful
Happy HMG'ing
Attached example for Saving of Window / Form [unable to compile in HMG, it is compiled in Minigui]
Any one can do necessary correction to compile in HMG
- Attachments
-
- SaveForm.rar
- (506.82 KiB) Downloaded 718 times
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Print Windows Form
Hi Dave.bpd2000 wrote:Thank you, Esgiciesgici wrote:Thanks Dave
Successful
Happy HMG'ing
Attached example for Saving of Window / Form [unable to compile in HMG, it is compiled in Minigui]
Any one can do necessary correction to compile in HMG
See Capture Method of HMG.
Code: Select all
Capture a Window As a Bitmap File And Save It
Syntax:
<WindowName>.Capture [ ( cFileName , nRow , nCol , nWidth , nHeight ) ]
Re: Print Windows Form
Excellant
Thank you, Dr. Claudio
Modified Sample Print & Save
Thank you, Dr. Claudio
Modified Sample Print & Save
- Attachments
-
- Print&SaveForm.rar
- (26.34 KiB) Downloaded 730 times
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Print Windows Form
Thank Davebpd2000 wrote: Modified Sample Print & Save
I'll inspect it ...
Regards
Viva INTERNATIONAL HMG
Re: Print Windows Form
Nice work, thanks for sharing!
I don't know if it's good place to ask my question:
Is it the way to print bitmap created in memory without saving it to temporary file?
I need to generate labels for range of goods with barcodes.
I don't know if it's good place to ask my question:
Is it the way to print bitmap created in memory without saving it to temporary file?
I need to generate labels for range of goods with barcodes.
Re: Print Windows Form
Friends of HMG
The Demonstration given to me in the archive printform.rar from a few sources looks like the answer to my printscreen need. However it always fails to compile with syntax errors at lines 65 67 77 79 149 151 153 155 and 157.
Has anyone else been successful?
Thanks
The Demonstration given to me in the archive printform.rar from a few sources looks like the answer to my printscreen need. However it always fails to compile with syntax errors at lines 65 67 77 79 149 151 153 155 and 157.
Has anyone else been successful?
Thanks
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Print Windows Form
These are the new functions we have:mol wrote:Nice work, thanks for sharing!
I don't know if it's good place to ask my question:
Is it the way to print bitmap created in memory without saving it to temporary file?
I need to generate labels for range of goods with barcodes.
Code: Select all
New Functions:
OpenPrinterGetDC() --> hDC of the current Open Printer
OpenPrinterGetPageDC() --> hDC of the current Page being printed
Code: Select all
BT_DrawBitmap (hDC, Row, Col, Width, Height, Mode_Stretch, hBitmap)
Draws a bitmap in the Device Context (DC) specified.
hDC: is a handle to the device context.
Row, Col, Width, Height: specifies the size of the rectangle in pixels in the DC where you will draw the bitmap. For default: Row = 0, Col = 0, Width = BT_BitmapWidth(hBitmap), Height = BT_BitmapHeight(hBitmap).
Mode_Stretch: sets the mode as the bitmap is adjusts (is stretches or compresses) in the specified rectangle in the DC, it is one of the constants: BT_SCALE, BT_STRETCH or BT_COPY (defined in BosTaurus.CH).
hBitmap: is a handle to the bitmap.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Print Windows Form
Hi Billbluebird wrote:Friends of HMG
The Demonstration given to me in the archive printform.rar from a few sources looks like the answer to my printscreen need. However it always fails to compile with syntax errors at lines 65 67 77 79 149 151 153 155 and 157.
Has anyone else been successful?
Thanks
Please don't worry, here you are between friends
Probably this is week end and orijinal author of program (our Dear Friend Dave) not have enough spear time.
Here slightly modified to working version of orijinal program:
Result: Source: Executable: Please note that:
- There is more points to optimize in this program
- This program is quite old and include some obsolete methods and functions
- Now we have more practical and short facilities ( Bostaurus library: BT_* functions )
So it's possible more and more adequate and short ways to achieve print / save images.
Happy HMG'ing
Viva INTERNATIONAL HMG