Print Page | Close Window

Access Denied

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3223
Printed Date: 22 Nov 24 at 2:39PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Access Denied
Posted By: agent86
Subject: Access Denied
Date 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;



Replies:
Posted By: agent86
Date Posted: 08 Dec 15 at 8:45PM
Sorry.  The problem was on my side.  For some reason the sharing on the printer was turned off.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk