Search found 70 matches

by Doctor Watson
Monday 17th May 2021 2:58pm
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 9
Views: 87

Re: PDF quandary - A cry for clarity.

Grayghost4, you are so right. To all who want to try it: - Feel free to change "Linux Libertine,12" to some font you like. "Z003,20" is a nice one. It should be pre-installed. - Run my code and click on the button. - Printer.Configure appears. - Choose ‘Print Preview’ (you will get a blanc page) - C...
by Doctor Watson
Monday 17th May 2021 12:56pm
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 9
Views: 87

Re: PDF quandary - A cry for clarity.

The generated files seem to be real PDF files indeed. Just checked them with an app ‘PDF Mix Tool’ and the Document Information says (Vuott will be pleased) : “Producer cairo 1.16.0”. So printer.configure uses cairo to produce PDF files. How this will turn out when I try to reach my final goal – put...
by Doctor Watson
Monday 17th May 2021 8:33am
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 9
Views: 87

PDF quandary - A cry for clarity.

Those who follow my “Printing to a PDF, SVG or Postscript file” topic will know that trying to do so seems to be a real problem. It doesn’t make sense reading through pages of instructions and code examples, trying to learn how to make project work, only to find out that when it finally does it will...
by Doctor Watson
Monday 17th May 2021 6:45am
Forum: General
Topic: Printing to a PDF, SVG or Postscript file
Replies: 7
Views: 104

Re: Printing to a PDF, SVG or Postscript file

Grayghost4, it doesn’t stop there. Meanwhile I spotted the culprit in their code. But – and don’t get me wrong – I’m only interested in obtaining a PDF file, and that’s because of those eternal problems with printers. I do appreciate your effords. Back to the issue. The syntax of this ‘command’ shou...
by Doctor Watson
Sunday 16th May 2021 5:20am
Forum: General
Topic: Printing to a PDF, SVG or Postscript file
Replies: 7
Views: 104

Re: Printing to a PDF, SVG or Postscript file

Now we are talking Grayghost4. Your added code works. First : you can add the printer like this : Public Printer1 As New Printer As "Printer1" No need for the usual (Me) as in NewPrinter(Me). Why? Don’t know but it works. I made the same mistake. But now for something else. The link you included, I ...
by Doctor Watson
Saturday 15th May 2021 3:22pm
Forum: General
Topic: Printing to a PDF, SVG or Postscript file
Replies: 7
Views: 104

Printing to a PDF, SVG or Postscript file

Using the Printer class looks like a really hot potato. I could find some example code, but it’s always about elaborate stuff like graphics and printing them to a printer (what a surprise). The thing I would like to do is to ‘print’ the contents of a TextArea or – better still – a file to a .PDF, .S...
by Doctor Watson
Friday 14th May 2021 1:20pm
Forum: General
Topic: Automatic change of Row Height with WordWrap ?
Replies: 12
Views: 456

Re: Automatic change of Row Height with WordWrap ?

Well I’ll be damned! All hail Cougier! Let’s go back to the very beginning of this topic: The solution would be that Rows[x].Height changes automatically when any cell in that row ‘WordWraps’ it’s content. Either I don’t find it, or it’s not possible (yet). I found a topic about this here: https://g...
by Doctor Watson
Thursday 13th May 2021 3:08pm
Forum: General
Topic: Automatic change of Row Height with WordWrap ?
Replies: 12
Views: 456

Re: Automatic change of Row Height with WordWrap ?

Hi everybody I’ve been rather busy to get this project working. As Cogier pointed out, it could perhaps be written entirely in HTML, but there are options – for me at least – can be achieved easier with GridView, combined with it’s option to edit cells with HTML. I suppose things would be easier if ...
by Doctor Watson
Monday 10th May 2021 9:12am
Forum: General
Topic: Automatic change of Row Height with WordWrap ?
Replies: 12
Views: 456

Re: Automatic change of Row Height with WordWrap ?

I just found something, but it’s way beyond my pay grade. I checked the project properties and noticed that in ‘Components’ ‘gb.qt4’ is disabled. I tried to enable it, but got a message that gb.gui and gb.qt4 are incompatible. So I disabled gb.gui and now RichTextSize no longer gives an error. But m...
by Doctor Watson
Monday 10th May 2021 6:27am
Forum: General
Topic: Automatic change of Row Height with WordWrap ?
Replies: 12
Views: 456

Re: Automatic change of Row Height with WordWrap ?

Cogier : Thanks for the HTML demonstration. It seems that a lot more is possible than mentioned in the Gambas manual (http://gambaswiki.org/wiki/doc/richtext) . I will however need the best of both worlds and use a GridView when I want to display graphics and text in one or more columns. Bruce : Sor...