Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use the ExecutePDF method to get the PDF version of the generated forms, instead of returning an HTML. This method receives no parametersPDFs can be prefilled with client data in the same fashion as HTML forms (using AddFieldToForm, LoadXML, etc.). The output of the method is an object of class PrintedPDF, whose properties are described below, or null on error.

...

  • On error, you can see the message in the Results property of the QuikFormsEngine instance (objQFE.Results)
  • If the OutputPath property is set, the PDF will be written in disk, with the file name specified in OutputFileName property. A default value of "QuikForms.pdf" will be set if no value is present on said property. The extension '.pdf' is not needed in the property value. 
  • For a fast look at the output PDF, copy and paste the returned PDF string into this free online converter

Sample Code

SOAP

Code Block
languagexml
titleSample Code
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthenticationHeader xmlns="https://websvcs.quikforms.com/quikformsenginews/">
      <CustomerID>CUSTOMER ID</CustomerID>
      <UserName>USERNAME</UserName>
      <Password>PASSWORD</Password>
    </AuthenticationHeader>
  </soap:Header>
  <soap:Body>
    <ExecutePDF xmlns="https://websvcs.quikforms.com/quikformsenginews/">
      <PDFSettings>
      	<QuikFormID>1</QuikFormID>
      	<PrintEditablePDF>true</PrintEditablePDF>
      	<LoadXML></LoadXML>
      </PDFSettings>
    </ExecutePDF>
  </soap:Body>
</soap:Envelope>

...