I'm using TMSFMXNativePDFView to show a PDF on-screen, I don't know if I'm doing this right, but I then use
TMSFMXNativePDFView1.GetView.print(Sender);
to print the PDF, the print dialog shows (with the the PDF content) and I can print.
The problem I have is that the print dialog does not show the paper size options that printing from most other osx programs shows, so when I change printers, I can't change the paper size.
Is there a was of getting a print dialog up where I can change the paper size?
Or, is there a better (proper) way of printing?
Richard
Hi,
A combination of NSPrintPanel and NSPrintInfo should give you the maximum flexibility:
If you want to keep using an NSView, you can try the following code:
var
vw: NSView;
begin
vw := Macapi.AppKit.NSView(TMSFMXNativePDFView1.GetView);
TNSPrintOperation.Wrap(TNSPrintOperation.OCClass.printOperationWithView(vw)).runOperation;
end;
Kind Regards,
Pieter
Thanks Pieter, I'll have a look through those.
Your second option gives me the same result as TMSFMXNativePDFView1.GetView.print(Sender);