<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Opening a bmp file from within vbs on a PDA platform in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444396#M3192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The code will work on your Windows Mobile device if you have installed a program that allows you to edit a .bmp file since that feature isn't included in the Windows Mobile OS.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed PDApaint, which offers a very similar user experience to MS Paint which isn't available for windows mobile 6 on the device I'm using - Trimble Nomad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set PDAPaint to be the default application, but it doesn't work as directed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone created a system that captures sketches?&amp;nbsp; If so what windows mobile application do you use for editing .bmp files?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 12:18:34 GMT</pubDate>
    <dc:creator>MikeCurtis</dc:creator>
    <dc:date>2010-07-12T12:18:34Z</dc:date>
    <item>
      <title>Opening a bmp file from within vbs on a PDA platform</title>
      <link>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444394#M3190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create some code that will enable a user to open a new bmp file (with automatically generated file name) to enable a sketch to made and captured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I've generated works perfectly on a PC, with a new file with automatically generated filename created, which is then opened by bmp editing software and can then be saved.&amp;nbsp; The code for editing a specific bmp file also works on a PC with the selected file being opened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HOWEVER, on a PDA running windows mobile 6 the same code fails to open the specified filename, neither the newly created file nor an existing file for editing.&amp;nbsp; Instead the Paint software opens with the last image/sketch still displayed, and to save I have to manually enter the system generated filename.&amp;nbsp; To edit a pre-existing file I have to browse for the relevant file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any coding amendments that can get around this OS specific issue?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an extract of the code that works perfectly on a PC, some unnecessary code has been removed for this post. Apologies for my clumsy coding I'm self taught &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sub AddSketch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim F1, F2, curStat, RSketch, statID, text, filename, incre_Numb, SketchPath, fSketchFile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim DirPath, PathLength, exPath, SysID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' create unique sketch filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set F1 = Application.Map.Layers("fieldata").Forms("EditForm").Pages("Stationinfopage") ' form containing locality information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set F2 = Application.Map.Layers("fieldata").Forms("FORM30").Pages("PAGE1") ' form controlling sketch function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DirPath = Application.UserProperties("FD_filepath") 'file directory path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;curStat = F1.controls("cboregion") &amp;amp; F1.controls("cboyear") &amp;amp; "-" &amp;amp; F1.controls("editStat") ' generates a location identifier&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;incre_Numb = SketchRecordID() ' function returns an incrementing number for bmp files at present locality&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filename = curStat &amp;amp; "(" &amp;amp; incre_Numb &amp;amp; ").bmp" ' generates the .bmp filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' create .bmp file with unique name then open it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set fSketchFile = CreateAppObject("File")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SketchPath = DirPath &amp;amp; "sketches\" &amp;amp; filename 'directory path to .bmp file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fSketchFile.Open SketchPath, 2 'Open and write to the end, open with default &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fSketchFile.Close &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Run(SketchPath) 'opens .bmp file with default application&amp;nbsp; ****THIS DOES NOT OPEN THE SPECIFIED FILE ON A WINDOWS MOBILE PLATFORM*****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InitiateSketch ' sub that initiates a form to show a list of sketch filenames at present locality&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how I can get the code to open a specific file when run on Windows mobile system would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 15:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444394#M3190</guid>
      <dc:creator>MikeCurtis</dc:creator>
      <dc:date>2010-07-07T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a bmp file from within vbs on a PDA platform</title>
      <link>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444395#M3191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code will work on your Windows Mobile device if you have installed a program that allows you to edit a .bmp file since that feature isn't included in the Windows Mobile OS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 06:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444395#M3191</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2010-07-09T06:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a bmp file from within vbs on a PDA platform</title>
      <link>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444396#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The code will work on your Windows Mobile device if you have installed a program that allows you to edit a .bmp file since that feature isn't included in the Windows Mobile OS.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed PDApaint, which offers a very similar user experience to MS Paint which isn't available for windows mobile 6 on the device I'm using - Trimble Nomad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set PDAPaint to be the default application, but it doesn't work as directed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone created a system that captures sketches?&amp;nbsp; If so what windows mobile application do you use for editing .bmp files?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/opening-a-bmp-file-from-within-vbs-on-a-pda/m-p/444396#M3192</guid>
      <dc:creator>MikeCurtis</dc:creator>
      <dc:date>2010-07-12T12:18:34Z</dc:date>
    </item>
  </channel>
</rss>

