Print Preview ActiveX Active Users: 72 / Visits Today: 216
Highest Active Users: 101
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 ReadForm - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: LoadXML - Method Topic Next Topic: ShowRtf - Method  

emiel
Administrator

Belgium
327 Posts

Posted - 02/13/2006 :  14:30:16  Show Profile
Method ReadForm

Action:

This method reads a VB form and shows it in the previewwindow.

Syntax:

ReadForm (PathAndFilename As String ) As DOMdocument

Remarks:

Not usable in MSAccess.

Example:

   Dim xml              As DOMDocument
   Dim sConnection      As String
   Dim oConnection      As New ADODB.Connection
   Dim oRecordset       As New ADODB.Recordset

   sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\PreviewDB.mdb;Persist Security Info=False"

   oConnection.Open sConnection

   oRecordset.Open "table1", oConnection

   With preview
      Set xml = .ReadForm(App.Path & "\Test\form3.frm")

      .AddFirstPage "0.5 in", "4.0 in", "0.5 in", "1.0 in", ".75 in", "1.0 in"

      .FormADO xml, oRecordset

      oRecordset.Close
      Set oRecordset = Nothing
      oConnection.Close
      Set oConnection = Nothing

      .Modal = True
      .endDocument prOTScreen
   End With

Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com
[/b]
Go to Bottom of Page
  Previous Topic: LoadXML - Method Topic Next Topic: ShowRtf - Method  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02