Search found 84 matches

by Doctor Watson
Tuesday 18th May 2021 12:33pm
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 23
Views: 13861

Re: PDF quandary - A cry for clarity.

Hi Grayghost4. Yes I started with a new project but that wouldn’t be necessary. A new form would be sufficient. I think you don’t see what’s going on. When Vuott sends this programme, he quite rightly supposes that you or any other visitor will spot that it contains code to handle a GridView1 and a ...
by Doctor Watson
Tuesday 18th May 2021 4:16am
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 23
Views: 13861

Re: PDF quandary - A cry for clarity.

Did you try that yourself Grayghost4?
Of course I did put GridView1 on the form.
And a Button1 by the way.
by Doctor Watson
Tuesday 18th May 2021 3:20am
Forum: General
Topic: Printing to a PDF, SVG or Postscript file
Replies: 8
Views: 4833

Re: Printing to a PDF, SVG or Postscript file

Grayghost4 :
If you ask someone to run a test of your code from a copy and paste you should tell them what graphic system you are using.
If that were the case, then the authors should have done so themselves in the first place, shouldn’t they?
by Doctor Watson
Tuesday 18th May 2021 3:18am
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 23
Views: 13861

Re: PDF quandary - A cry for clarity.

Vuott : Just tried to run your code. Unfortunately something goes wrong.
It starts with an error: “Unknown identifier: DesktopWindow”
Both gb.cairo and gb.desktop.x11 have been activated.
:?:
by Doctor Watson
Monday 17th May 2021 2:58pm
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 23
Views: 13861

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 g...
by Doctor Watson
Monday 17th May 2021 12:56pm
Forum: General
Topic: PDF quandary - A cry for clarity.
Replies: 23
Views: 13861

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: 23
Views: 13861

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: 8
Views: 4833

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: 8
Views: 4833

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 in...
by Doctor Watson
Saturday 15th May 2021 3:22pm
Forum: General
Topic: Printing to a PDF, SVG or Postscript file
Replies: 8
Views: 4833

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...