Setting Up Quik! Forms Engine In .NET

This section shows how to implement the Quik! Forms Engine on your Windows-based web server running the .NET Framework.

Files In QuikWebFormsEngine.zip For .NET

QuikFormsEngine.dll – software - .NET library file outputs HTML files
javascripts folder – iScroll.js and jquery-1.9.1.min.js are referenced by the HTML files

Setup

The steps to setting up and running the Quik! Forms Engine are listed below.

  1. Place the DLL in your application's BIN folder.
  2. Create a reference to the .NET DLL within your project
  3. Instantiate the QuikFormsEngine as an object

Dim objQFE As QuikFormsEngine.QuikFormsEngine

  1. Add your customer credentials

'Enter the credentials for your Quik! account
objQFE.QuikUsername = "MasterUsername"
objQFE.QuikPassword = "MasterPassword"
objQFE.QuikCustID = "10001234"

  1. Add the FormID(s) you want to generate

'Enter the form ID(s) - multiple can be submitted at once separated by commas (e.g. 12,14,17)
objQFE.QuikFormID = Me.txtFormIDs.Text

  1. Add field values to prefill onto the form. Ideally, pass values to this method programmatically from an array of data or a record set from a database.

objQFE.AddFieldToForm( _
FieldName:="1own.FName", _
FieldValue:="Owner 1 First Name", _
FieldReadOnly:=QuikFormsEngine.QFD.FieldReadOnly.NoRestrictions, _
FieldVisibility:=QuikFormsEngine.QFD.FieldVisibility.None, _
FieldRequired:=QuikFormsEngine.QFD.FieldRequired.NotRequired)

  1. Set the Save and/or Submit URLs if you want users to send their data to your system (note: the web server receiving the submitted data can be any kind of page that is configured to parse a standard HTML submit event).

objQFE.SaveURL = "http://localhost/SaveForm.aspx"
objQFE.SubmitURL = "http://localhost:59536/SubmitForm.aspx"

  1. Run the Quik! Forms Engine and return the result to an array list

Dim arrFiles As ArrayList = Nothing
arrFiles = objQFE.Execute

  1. Check the error object for any errors.

If objQFE.Results.ErrorFlag Then
MessageBox.Show("Error: " & objQFE.Results.Message)
Else
'Do something to show the HTML file to the user – e.g. Response.Redirect or Response.write
End If

  1. Once the engine has run, you can send the output to the requesting browser.



For help regarding Quik! Forms and the Quik! API
Email: support@quikforms.com | Phone: (877) 456-QUIK