Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: https://itstudio.be/feed/

  1. <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
  2. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  3. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  4. xmlns:dc="http://purl.org/dc/elements/1.1/"
  5. xmlns:atom="http://www.w3.org/2005/Atom"
  6. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  7. xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  8. >
  9.  
  10. <channel>
  11. <title>IT Studio</title>
  12. <atom:link href="https://itstudio.be/feed/" rel="self" type="application/rss+xml" />
  13. <link>https://itstudio.be/</link>
  14. <description>Your IT Service Partner</description>
  15. <lastBuildDate>Thu, 04 Nov 2021 15:33:54 +0000</lastBuildDate>
  16. <language>en</language>
  17. <sy:updatePeriod>
  18. hourly </sy:updatePeriod>
  19. <sy:updateFrequency>
  20. 1 </sy:updateFrequency>
  21. <generator>https://wordpress.org/?v=6.5.2</generator>
  22. <item>
  23. <title>Lotusscript: Export attachments of Notes documents to the filesystem</title>
  24. <link>https://itstudio.be/lotusscript-export-attachments-of-notes-documents-to-the-filesystem/</link>
  25. <dc:creator><![CDATA[admin]]></dc:creator>
  26. <pubDate>Thu, 04 Nov 2021 14:17:33 +0000</pubDate>
  27. <category><![CDATA[code]]></category>
  28. <category><![CDATA[LotusScript]]></category>
  29. <category><![CDATA[Code]]></category>
  30. <guid isPermaLink="false">https://lotusnotes.be/?p=922</guid>
  31.  
  32. <description><![CDATA[<p>The post <a href="https://itstudio.be/lotusscript-export-attachments-of-notes-documents-to-the-filesystem/">Lotusscript: Export attachments of Notes documents to the filesystem</a> appeared first on <a href="https://itstudio.be">IT Studio</a>.</p>
  33. ]]></description>
  34. <content:encoded><![CDATA[
  35. <style type="text/css" data-created_by="avia_inline_auto" id="style-css-av-kvl0iqbv-2de596ca56a59465231e6ca06a6a3c30">
  36. #top .av-special-heading.av-kvl0iqbv-2de596ca56a59465231e6ca06a6a3c30{
  37. padding-bottom:10px;
  38. }
  39. body .av-special-heading.av-kvl0iqbv-2de596ca56a59465231e6ca06a6a3c30 .av-special-heading-tag .heading-char{
  40. font-size:25px;
  41. }
  42. .av-special-heading.av-kvl0iqbv-2de596ca56a59465231e6ca06a6a3c30 .av-subheading{
  43. font-size:15px;
  44. }
  45. </style>
  46. <div  class='av-special-heading av-kvl0iqbv-2de596ca56a59465231e6ca06a6a3c30 av-special-heading-h1  avia-builder-el-0  el_before_av_textblock  avia-builder-el-first '><h1 class='av-special-heading-tag'  itemprop="headline"  >Lotusscript: Export attachments of Notes documents to the filesystem</h1><div class="special-heading-border"><div class="special-heading-inner-border"></div></div></div>
  47. <section  class='av_textblock_section av-kvl0hifn-54f395be78e87e3524f727a034a86154'  itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" ><div class='avia_textblock'  itemprop="text" ><p>You can use the below script if you want to have all attachments of the selected Notes documents exported to the file system and also want to keep an option for developers to access the metadata of the original Notes document.</p>
  48. <p>First the entire document is exported into DXL, then all attachments are detached to the file system.<br />
  49. To avoid name conflicts while detaching files, a folder is created for each Notes document so all attachments of this Notes document will be stored in this subfolder.</p>
  50. </div></section>
  51. <section  class='av_textblock_section av-kvl0i0og-54ce06919c6b6b087d2b47ec0189beba'  itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" ><div class='avia_textblock'  itemprop="text" ><pre class="EnlighterJSRAW" data-enlighter-language="cpp" data-enlighter-theme="eclipse">    Option Public
  52.    Option Declare
  53.    Dim gCounter&amp;
  54.    Sub Initialize
  55.          Dim s As New NotesSession
  56.          Dim coll As NotesDocumentCollection
  57.          Dim BasePath$
  58.    
  59.          BasePath$ = InputBox ("Export data to path...: ", "Export", "C:\")
  60.        
  61.          '# add backslash at the end
  62.          If right (BasePath$,1) &lt;&gt; "\" Then BasePath$ = BasePath$ &amp; "\"
  63.        
  64.          Print "Using BasePath : " &amp; BasePath$
  65.        
  66.          Set coll = s.currentdatabase.Unprocesseddocuments
  67.          If coll Is Nothing Then
  68.                  MessageBox "No documents selected"
  69.          Else
  70.                  Print "Processing " &amp; coll.count &amp; " documents..."
  71.                  Call ExportToDXL (coll, BasePath$)
  72.                  Call ExportToFile (coll, BasePath$)
  73.                  MessageBox "Export completed."
  74.          End If        
  75.    End Sub
  76.    
  77.    Function ExportToDXL (Coll As NotesDocumentCollection, BasePath As String)
  78.          Dim session As New NotesSession
  79.          Dim stream As NotesStream
  80.          Dim DXLfilename$
  81.          Dim doc As NotesDocument
  82.          Dim tdoc As NotesDocument
  83.          Dim exporter As NotesDXLExporter
  84.        
  85.          If coll Is Nothing Then Exit function
  86.          Set doc = coll.getfirstdocument
  87.          While Not doc Is Nothing
  88.                  Set tdoc = coll.getNextDocument (doc)
  89.                  '# Open xml file named after current database
  90.                  Set stream = session.CreateStream
  91.                  DXLfilename$ = BasePath$ &amp; doc.universalid &amp; ".dxl"
  92.                  If Not stream.Open(DXLfilename$) Then
  93.                          MessageBox "Cannot open " &amp; DXLfilename$,, "Error"
  94.                          Exit Function
  95.                  End If
  96.                
  97.                  '# kick off the exporter process
  98.                  Set exporter = session.CreateDXLExporter
  99.                  Call exporter.SetInput(doc)
  100.                  Call exporter.SetOutput(stream)
  101.                  Call exporter.Process
  102.                
  103.                  Set doc = tdoc
  104.          Wend
  105.    End Function
  106.    
  107.    Function ExportToFile (coll As NotesDocumentCollection, BasePath As String)
  108.            On Error GoTo ErrH
  109.            Dim doc As NotesDocument
  110.            Dim tdoc As NotesDocument
  111.            Dim rtitem As variant
  112.            Dim targetpath$, fname$
  113.            Dim FieldList(0) As String
  114.            Dim oba As Variant
  115.          
  116.            '# define which fields to scan for attachments
  117.            FieldList (0) = "Body"
  118.          
  119.            If coll Is Nothing Then Exit Function
  120.          
  121.            Set doc = coll.getfirstdocument
  122.            While Not doc Is Nothing
  123.                    Set tdoc = coll.getNextDocument (doc)
  124.                    If doc.Hasembedded Then
  125.                            targetpath$ = BasePath$ &amp; doc.universalid &amp; "\"
  126.                          
  127.                            If Dir$ (BasePath$ &amp; doc.universalid, 16) = "" Then MkDir targetpath$
  128.                          
  129.                            '# loop list of fields
  130.                            ForAll f In FieldList
  131.                                     Set rtitem = doc.GetFirstItem(f)
  132.                                     If Not rtitem Is Nothing Then
  133.                                            If (rtitem.Type = RICHTEXT ) Then
  134.                                                    '# make sure the field contains some objects and detach
  135.                                                    If IsArray(rtitem.embeddedObjects) Then
  136.                                                            ForAll o In rtitem.EmbeddedObjects
  137.                                                                    If ( o.Type = EMBED_ATTACHMENT ) Then
  138.                                                                            Fname$=o.Name
  139.                                                                            If FileExists (fname$) Then fname$ = CStr(gCounter&amp;) &amp; Fname$
  140.                                                                            Call o.ExtractFile(targetPath$ &amp; Fname$)
  141.                                                                            gCounter&amp; = gCounter&amp; + 1
  142.                                                                    End If
  143.                                                            End ForAll
  144.                                                    End If
  145.    
  146.                                            End If
  147.                                    End If
  148.                            End ForAll
  149.                    End If
  150.                    Set doc = tdoc
  151.            Wend
  152.    continue:
  153.            Exit Function
  154.          
  155.    errH:
  156.            Stop
  157.            Print "Error " &amp; Err() &amp; " in line " &amp; Erl() &amp; " - " &amp; Error
  158.            Resume continue
  159. End Function</pre>
  160. </div></section>
  161. <p>The post <a href="https://itstudio.be/lotusscript-export-attachments-of-notes-documents-to-the-filesystem/">Lotusscript: Export attachments of Notes documents to the filesystem</a> appeared first on <a href="https://itstudio.be">IT Studio</a>.</p>
  162. ]]></content:encoded>
  163. </item>
  164. <item>
  165. <title>Lotusscript: Simple export from a Notes view to Excel</title>
  166. <link>https://itstudio.be/lotusscript-simple-export-from-a-notes-view-to-excel/</link>
  167. <dc:creator><![CDATA[admin]]></dc:creator>
  168. <pubDate>Thu, 04 Nov 2021 14:05:39 +0000</pubDate>
  169. <category><![CDATA[code]]></category>
  170. <category><![CDATA[LotusScript]]></category>
  171. <category><![CDATA[Code]]></category>
  172. <guid isPermaLink="false">https://lotusnotes.be/?p=919</guid>
  173.  
  174. <description><![CDATA[<p>The post <a href="https://itstudio.be/lotusscript-simple-export-from-a-notes-view-to-excel/">Lotusscript: Simple export from a Notes view to Excel</a> appeared first on <a href="https://itstudio.be">IT Studio</a>.</p>
  175. ]]></description>
  176. <content:encoded><![CDATA[
  177. <style type="text/css" data-created_by="avia_inline_auto" id="style-css-av-kvl0iqbv-3cbbd07e98c8b27e4bb67e03ef3463b5">
  178. #top .av-special-heading.av-kvl0iqbv-3cbbd07e98c8b27e4bb67e03ef3463b5{
  179. padding-bottom:10px;
  180. }
  181. body .av-special-heading.av-kvl0iqbv-3cbbd07e98c8b27e4bb67e03ef3463b5 .av-special-heading-tag .heading-char{
  182. font-size:25px;
  183. }
  184. .av-special-heading.av-kvl0iqbv-3cbbd07e98c8b27e4bb67e03ef3463b5 .av-subheading{
  185. font-size:15px;
  186. }
  187. </style>
  188. <div  class='av-special-heading av-kvl0iqbv-3cbbd07e98c8b27e4bb67e03ef3463b5 av-special-heading-h1  avia-builder-el-0  el_before_av_textblock  avia-builder-el-first '><h1 class='av-special-heading-tag'  itemprop="headline"  >Lotusscript: Simple export from a Notes view to Excel</h1><div class="special-heading-border"><div class="special-heading-inner-border"></div></div></div>
  189. <section  class='av_textblock_section av-kvl0hifn-54f395be78e87e3524f727a034a86154'  itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" ><div class='avia_textblock'  itemprop="text" ><p>This simple LotusScript agent exports all documents from a view to Excel. It exports every column separately</p>
  190. </div></section>
  191. <section  class='av_textblock_section av-kvl0i0og-54ce06919c6b6b087d2b47ec0189beba'  itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" ><div class='avia_textblock'  itemprop="text" ><pre class="EnlighterJSRAW" data-enlighter-language="cpp" data-enlighter-theme="eclipse">Sub Initialize
  192.  
  193. Dim session As New NotesSession
  194. Dim db As NotesDatabase
  195. Dim view As NotesView
  196. Dim wks As New NotesUIWorkspace
  197. Dim uiView As NotesUIView
  198. Dim column As NotesViewColumn
  199. Dim doc As NotesDocument
  200.  
  201. Dim row As Long
  202. Dim counter As Long
  203. Dim colcounter As Integer
  204. Dim filename As String
  205.  
  206. Dim xlApp As Variant
  207. Dim xlsheet As Variant
  208. Dim xlswb As Variant
  209. Dim xlrange As Variant
  210.  
  211. Set db=session.currentdatabase
  212. Set xlApp = CreateObject("Excel.Application")
  213. xlApp.Visible = True 'Make Excel visible
  214.  
  215. Set xlwb=xlApp.Workbooks.Add
  216. Set xlsheet =xlwb.Worksheets(1)
  217.  
  218. Set uiView = wks.currentview
  219. Set view = db.GetView( uiView.ViewName ) ' get the view currently open in UI
  220. row=1
  221. colcounter=0
  222. Forall c In view.Columns
  223. If c.isIcon&lt;&gt;True Then ' do not include icon columns
  224. If c.Formula&lt;&gt;"""1""" And c.Formula&lt;&gt;"1" Then 'do not include columns which are counting docs (Totals)
  225. xlsheet.Cells(row,colcounter+1).Value = c.Title 'set Excel column titles
  226. colcounter=colcounter+1
  227. End If
  228. End If
  229. End Forall
  230.  
  231. row=2
  232. counter = 0
  233. x=0
  234. Set doc = view.GetFirstDocument
  235. While Not ( doc Is Nothing )
  236. Forall c In view.Columns
  237. If c.isIcon&lt;&gt;True Then ' do not include icon columns
  238. If c.Formula&lt;&gt;"""1""" And c.Formula&lt;&gt;"1" Then 'do not include columns which are counting docs (Total)
  239. currentvalue= doc.ColumnValues(counter)
  240. xlsheet.Cells(row, x+1).Value = currentvalue 'set values to Excel table
  241. x=x+1
  242. End If
  243. End If
  244. counter = counter +1
  245. End Forall
  246. counter = 0
  247. x=0
  248. row=row+1
  249. Set doc = view.GetNextDocument (doc)
  250. Wend
  251.  
  252. Msgbox "Export completed!", 64, "INFO"
  253.  
  254. End Sub
  255. </pre>
  256. </div></section>
  257. <p>The post <a href="https://itstudio.be/lotusscript-simple-export-from-a-notes-view-to-excel/">Lotusscript: Simple export from a Notes view to Excel</a> appeared first on <a href="https://itstudio.be">IT Studio</a>.</p>
  258. ]]></content:encoded>
  259. </item>
  260. </channel>
  261. </rss>
  262.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=https%3A//itstudio.be/feed/

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda