Search found 42 matches

by grayghost4
Friday 17th January 2020 5:54am
Forum: General
Topic: Did you know?
Replies: 43
Views: 11463

Re: Did you know?

try this : If Dialog.SelectDirectory() Then Return Print Dialog.Path Print File.Dir(Dialog.Path) Print File.Dir(File.Dir(Dialog.Path)) Print File.Dir(File.Dir(File.Dir(Dialog.Path))) will produce this: /home/mhc/Documents/workinggambas/printchecks /home/mhc/Documents/workinggambas /home/mhc/Document...
by grayghost4
Thursday 16th January 2020 3:02am
Forum: General
Topic: how to set Margins ??
Replies: 0
Views: 18

how to set Margins ??

I would like to read and set Margins both left and right as well as top and bottom This will not work for be , how can I make it work ? comp • gb.form.print • printer • marginleft Printer.MarginLeft (gb.form.print) Property MarginLeft As Integer Return or set the default left margin in millimeters.
by grayghost4
Thursday 16th January 2020 2:46am
Forum: General
Topic: paint.end
Replies: 2
Views: 47

Re: paint.end

give this a try , it should print three pages : Public Sub PrintButton_Click() If Printer2.Configure() Then Return Printer2.Count = 3 Me.Enabled = False Inc Application.Busy Printer2.Print Dec Application.Busy Me.Enabled = True End Public Sub Printer2_Draw() Paint.DrawRichText("hello", 300, 300) Pai...
by grayghost4
Monday 13th January 2020 2:53am
Forum: General
Topic: ScrollArea
Replies: 4
Views: 582

Re: ScrollArea

Hi Quin, Sorry it didn't work for you. I downloaded it and it seems OK, however here it is again in a different format and the code as well. Public Sub ScrollArea1_Draw() Draw.Picture(Picture.Load(Application.Path &/ "test.png"), 150, 150, 300, 300) End this is the kind of help I like .... short an...
by grayghost4
Thursday 02nd January 2020 4:44am
Forum: General
Topic: How can I insert a pagefeed or newpage in this
Replies: 8
Views: 201

Re: How can I insert a pagefeed or newpage in this

stevedee:
Thanks for the listing you put up... Got it working with :

Printer1.Count = inumofpages

That works kinda like a For Next loop

and in my case I don't need paint.fill
by grayghost4
Wednesday 01st January 2020 6:48pm
Forum: Project showcase
Topic: Book Available
Replies: 12
Views: 1267

Re: Book Available

@Gerard :
Your book is helping me (a new gambas user) VERY much, Thanks for the work :D
by grayghost4
Wednesday 01st January 2020 7:53am
Forum: General
Topic: How can I insert a pagefeed or newpage in this
Replies: 8
Views: 201

Re: How can I insert a pagefeed or newpage in this

I still have not found a "new page" command ... but have rewritten the routine to accomplish the same results :D

It would be nice to learn how to implement a page brake.

In the meantime I have a lot to learn about Gambas.
by grayghost4
Monday 30th December 2019 2:51pm
Forum: General
Topic: How can I insert a pagefeed or newpage in this
Replies: 8
Views: 201

Re: How can I insert a pagefeed or newpage in this

jornmo wrote:
Monday 30th December 2019 8:58am
Try by using gb.pdf
I am not smart enough to know how to implement that :(

could you give an example ?

I have tried :
Paint.DrawRichText(Chr$(12))
did not work :x

also tried :
Paint.DrawRichText(gb.pdf)
gave an error of unknown .... pdf
by grayghost4
Monday 30th December 2019 7:17am
Forum: General
Topic: How can I insert a pagefeed or newpage in this
Replies: 8
Views: 201

How can I insert a pagefeed or newpage in this

I need a Page feed or new page at the comment below ... at line 37 ' Gambas class file Static Public iCkNumber As Integer Static Public ibankroute As String Static Public iaccountNumber As String Static Public iStartCkNum As Integer = 25000 Public Sub Form_Open() End Public Sub Prn1_Draw() Dim ix, i...
by grayghost4
Sunday 29th December 2019 8:45pm
Forum: General
Topic: Printing to printer with MIRC Encoding font
Replies: 8
Views: 187

Re: Printing to printer with MIRC Encoding font

from looking at the program it appears that I should put the entire print out that I want into one string and send it to the print sub .... if so how do I force a Page Break ? Or do I just put one page in at a time ? Is there a text book or tutorial that covers printing to the printer ? I have been ...