Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Sydney, New South Wales, Australia
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a data entry form for standard address details etc but I need to have a system for field officers to open MS Paint to a specific pro-forma template so they can 'draw' specifics about a property.

    Opening MS Paint is no trouble using:

    [codebox] Dim stAppName As String
    stAppName = "C:\WINDOWS\system32\mspaint.exe"
    Call Shell(stAppName, 1)

    [/codebox]

    but is there anyway to control MS Paint to open a specific template automatically?

    Thanks

    PS Love the new look forum!! Thank you and congratulations!!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You could use code like this:
    Code:
    Dim stAppName As String
    Dim stPaintFile As String
    
    stAppName = "C:\WINDOWS\system32\mspaint.exe"
    ' substitute the correct path/filename
    stPaintFile = "C:\Pictures\MyPic.bmp"
    Call Shell(stAppName & " " & Chr(34) & stPaintFile & Chr(34), 1)

  3. #3
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Sydney, New South Wales, Australia
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perfect. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •