A further question re. Printing of Graphs
There are many similar questions but none where the answers are acceptably adiquite or two or three were the link was broken,
"Developer exchange forums have been moved" and a pointer to the new
site, unfort it was hard to find or guess the rest of the link.
So here is my angle on this problem;
So far I have tried;
Using property node: "App. Printing.Default Printer" to select the printer to use, then
Using Report Functions to print controls;
- New Report, to generate a new report reference
- Set Report Orientation
- Set Report Margins
- Set Report Font
- Set Report Header Text
- Set Report Font
- Set Report Footer Text
loop for each page
- Set Report Footer Text, With page number
- Append Control Image to Report, several times
- New Report Page
Until the end of the last page
- Print Report
- Dispose Report
Initially using existing XY-Graph controls from the front panel. These
are on a page of a Tab control to hide these controls while not in use
and allow them to be hidden while generating the printout.
Unfortunately when this page is hidden any graph scales set to
autoscale don't, (normally don't need to and would otherwise be a waste
of processor time), resulting in graph plots going off scale or
becoming a line along the axis.
An issue is that what is printed appears to be read from the screen, so resolution is
much
lower than required for for printing, resulting in rather pixellated
printed versions. These prints will usually be emailed, so tried the
pdf995 "printer driver" but the resulting pdf file size is rather large.
Currently trying Plot-XY on a much larger picture so as to get
adequate resolution for printing, however suspect this will result in
much larger pdf files and probably cause other problems.
The preferred solution in this case will probably be to generate print
output, instead of based on raster images (ie jpg or png), but on a
vector format, maybe via postscript or directly in pdf format.
Similar graphs currently printed from Excel via pdf995
(or OpenOffice) result in files around 20 kb per page. these can be printed at any size
(at least upto 64 times) without becoming pixellated, so assume these
are vector based.
Currently a page with 4 XY Graph controls uses around 40 to 45 kb per
page but resolution is poor and overcoming that may push file size up
to 150 to 200 kb per page, and the whole job can be 50 to 100 pages.
Are there any functions to generate XY graphs directly in a vector data format preferably in pdf or via PostScript format.
Cheers
Darryl