Re: [Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ?

2016-02-18 Thread Charlie
OK machackerx86 I have put the attached together for you. It is a start, there are probably things to change or add but see what you think. URL-List.tar -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention

[Gambas-user] String conversion for printing

2016-02-18 Thread Roel Touwen
Hi All, I have an application that prints. The problem is that when I want to print é it appears as é. So I think I need a string conversion like Conv$ but wherever I look, there are no working samples. My charset of system and database are UTF8 Who? Grtz Roel Touwen

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread Benoît Minisini
Le 18/02/2016 14:59, Roel Touwen a écrit : > Hi All, > > I have an application that prints. The problem is that when I want to > print é it appears as é. > > So I think I need a string conversion like Conv$ but wherever I look, > there are no working samples. > > My charset of system and database

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread Roel Touwen
The whole printing procedure works fine except for the 'strange' characters like é ë etc. As a base I used the printing sample of Gambas3. Now I'm printing to PDF by providing a filename. In the draw section I simply use: Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) Grtz Roel

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread Charlie
I don't know all the answers to this but If you run the following code it may help you diagnose the problem: - Public Sub Form_Open() Dim siCount As Short Print "Length of string = " & Len("é") For siCount = 1 To 2 Print "Character " & Str(siCount) & " - " & Asc(Mid("é", siCount, 1)) Next Print "

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread KKing
On 18/02/16 13:59, Roel Touwen wrote: > Hi All, > > I have an application that prints. The problem is that when I want to > print é it appears as é. > > So I think I need a string conversion like Conv$ but wherever I look, > there are no working samples. > > My charset of system and database are U

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread Ivan Kern
Hello, i have had the same problem before i used conversion into ISO-8859-15. sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15") Ivan -- Site24x7 APM Insight: Get Deep Visibility into Application Perform

Re: [Gambas-user] String conversion for printing

2016-02-18 Thread Roel Touwen
Thanks all, This was the solution to my problem. Grtz Roel op 19-02-16 07:48, Ivan Kern schreef: > Hello, i have had the same problem before i used conversion into > ISO-8859-15. > > sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15") > > > > Ivan > > ---