Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Access Denied |
Post Reply |
Author | |
agent86
Beginner Joined: 06 Feb 10 Location: SF Bay Area Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 07 Dec 15 at 7:58PM |
Delphi XE3
When I try the following procedure I get an Access Denied on the printer control panel status... procedure TMainForm.PrintPDFReportQPDF ; var UnlockResult : integer ; // used by QuickPDF verify password iPrintOptions: Integer; begin if DebugStatus = True then DebugStatusMemo.Lines.Add('PrintPDFReportQPDF - Start') ; // ShowMessageWindow := True ; if ShowMessageWindow = True then ShowMessage('PrintPDFReportQPDF - Start') ; try QPDF := TDebenuPDFLibrary0913.Create ; UnlockResult := QPDF.UnlockKey(QPDFKey); CreateDisplayPDFName ; // load PDF into QPDF if QPDF.LoadFromFile(DisplayPDFName, '') = 1 then begin // Configure print options iPrintOptions := QPDF.PrintOptions(0, 0, TempPDFName); // Print the current document to the default printing // using the options as configured above QPDF.PrintDocument(QPDF.GetDefaultPrinterName(), 1, 1, iPrintOptions); end ; finally end ; if ShowMessageWindow = True then ShowMessage('PrintPDFReportQPDF - End') ; if DebugStatus = True then DebugStatusMemo.Lines.Add('PrintPDFReportQPDF - End') ; end;
|
|
agent86
Beginner Joined: 06 Feb 10 Location: SF Bay Area Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Sorry. The problem was on my side. For some reason the sharing on the printer was turned off.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store