¡¡¥Î¡¼¥Ä¤â6.5¤«¤éCSV½ÐÎϵ¡Ç½¤¬Äɲ䵤ì¤Þ¤·¤¿¡ÊÃÙ¤¤¤è¡Ë¡£¤½¤ì¤Ï¤½¤ì¤Ç»È¤¨¤ë¤Î¤Ç¤¹¤¬¡¢¥Î¡¼¥Ä¤Î¥Ó¥å¡¼¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ëÆâÍÆ¤ò¤ò¥¨¥¯¥»¥ë¥Õ¥¡¥¤¥ë¤Ë½ÐÎϤ·¤¿¤¤¡£¤È¤¤¤¦¤³¤È¤ò¹Í¤¨¤¿¤ê¡¢¥¯¥é¥¤¥¢¥ó¥È/¥¨¥ó¥É¥æ¡¼¥¶¡¼¤«¤é¥ê¥¯¥¨¥¹¥È¤ò夤¤¿¤ê¤¹¤ë¤³¤È¤Ï¿¤¤¤È»×¤¤¤Þ¤¹¡£¤½¤·¤Æ¡¢web¾å¤Ë¤Ï¤½¤Î¤¿¤á¤Î¿¤¯¤Îtool¤¬Í½þ¡¦Ìµ½þÌä¤ï¤º¸ø³«¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¤Ç¡¢¤¤¤í¤¤¤í¤¢¤ëÃæ¤Ç¡¢°ìÈ֤Τªµ¤¤ËÆþ¤ê¤¬¡¢Art Yates¤Î¡ÖExport any view to Excel¡×(on searchdomino)¤Ç¤¹¡£¤Ò¤È¤Ä¤Îsub´Ø¿ô¤Ç´°·ë¤·¡¢´Ä¶ÀßÄê°ìÀڤʤ·¤Ç¡¢¤³¤ì¤ò¤³¤Î¤Þ¤Þ¥¨¡¼¥¸¥§¥ó¥È¤ËޤêÉÕ¤±¤Æ¥¢¥¯¥·¥ç¥ó¥á¥Ë¥å¡¼¤«¤é¼Â¹Ô¤¹¤ì¤Ð¡¢¤É¤³¤«¤é¤Ç¤â¼Â¹Ô²Äǽ¤È¤¤¤¦¡¢ÈÆÍÑÀ¤È°Ü¿¢À¤¬Èó¾ï¤Ë¹â¤¤script¤Ç¤¹¡£(¥¹¥¯¥ê¥×¥È°úÍÑÍó¤Î²¼¤Ë¤Ä¤Å¤¯)
================================
"Export any view to Excel" by Art Yates:
Sub Initialize 'Create an Excel Spreadsheet from any view '11/3/2000 Art Yates Dim Session As New NotesSession ,db As NotesDatabase Dim sourceview As NotesView,sourcedoc As NotesDocument Dim dataview As NotesView, dc As NotesDocumentCollection Dim datadoc As NotesDocument, maxcols As Integer Dim WS As New Notesuiworkspace Dim ViewString As String, Scope As String, GetField As Variant Dim C As NotesViewColumn, FieldName As String, K As Integer,N As Integer Dim xlApp As Variant, xlsheet As Variant, rows As Integer, cols As Integer Dim nitem As NotesItem , entry As NotesViewEntry, vwNav As NotesViewNavigator Dim ShowView() As Variant, i As Integer, VList As Variant, ColVals As Variant Set db = session.CurrentDatabase 'link to current database 'fetch then display a list of views in the database Vlist= db.views K=Ubound(Vlist) 'get size of list Redim Preserve ShowView(K) N=-1 For i = 0 To K If Len(Vlist(i).Name) >0 Then FieldName=Trim(Vlist(i).Name) If Mid(Fieldname,1,1) <>"(" Then 'do not show hidden views N=N+1 ShowView(N) = FieldName End If End If Next i Redim Preserve ShowView(N) 'now sort the list - by default views are listing in the order that they were created For i=0 To N For K=i To N If ShowView(i) > ShowView(k) Then FieldName=ShowView(i) ShowView(i) = ShowView(k) ShowView(k)=FieldName End If Next k Next i viewstring= ws.Prompt(PROMPT_OKCANCELLIST,"List of Views","Choose a View","",ShowView ) If Len(viewstring)=0 Then Exit Sub 'ViewString ="Dan's View" Set dataview = db.getview(ViewString) 'get selected view Set vwnav= dataview.createViewnav() rows = 1 cols = 1 maxcols=dataview.ColumnCount 'how many columns? Set xlApp = CreateObject("Excel.Application") 'start Excel with OLE Automation xlApp.StatusBar = "Creating WorkSheet. Please be patient..." xlApp.Visible = True xlApp.Workbooks.Add xlApp.ReferenceStyle = 2 Set xlsheet = xlApp.Workbooks(1).Worksheets(1) 'select first worksheet 'worksheet title xlsheet.Cells(rows,cols).Value ="View: " + ViewString + ", from Database: " + db.title +", Extract created on: " + Format(Now,"mm/dd/yyyy HH:MM") xlApp.StatusBar = "Creating Column Heading. Please be patient..." rows=2 'column headings starts in row 2 For K=1 To maxcols Set c=dataview.columns(K-1) xlsheet.Cells(rows,cols).Value = c.title cols = cols + 1 Next K Set entry=vwnav.GetFirstDocument rows=3 'data starts in third row Do While Not (entry Is Nothing) For cols=1 To maxcols colvals=entry.ColumnValues(cols-1) 'subscript =0 scope=Typename(colvals) Select Case scope Case "STRING" xlsheet.Cells(rows,cols).Value ="'" + colvals Case Else xlsheet.Cells(rows,cols).Value = colvals End Select Next cols xlApp.StatusBar = "Importing Notes Data - Document " & rows-1 '& " of " & dc.count & "." rows=rows+1 Set entry = vwnav.getnextdocument(entry) Loop xlApp.Rows("1:1").Select xlApp.Selection.Font.Bold = True xlApp.Selection.Font.Underline = True xlApp.Range(xlsheet.Cells(2,1), xlsheet.Cells(rows,maxcols)).Select xlApp.Selection.Font.Name = "Arial" xlApp.Selection.Font.Size = 9 xlApp.Selection.Columns.AutoFit With xlApp.Worksheets(1) .PageSetup.Orientation = 2 .PageSetup.centerheader = "Report - Confidential" .Pagesetup.RightFooter = "Page &P" & Chr$(13) & "Date: &D" .Pagesetup.CenterFooter = "" End With xlApp.ReferenceStyle = 1 xlApp.Range("A1").Select xlApp.StatusBar = "Importing Data from Lotus Notes Application was Completed." 'xlapp.ActiveWorkbook.saveas "c:VX" + Trim(Format(Now,"yyy")) 'save with generated name dataview.clear Set xlapp=Nothing 'stop OLE Set db=Nothing End Sub
¡¡¤³¤ì¤¬ÊªÂ¤ê¤Ê¤¯¤Ê¤Ã¤¿¤é¡¢¤³¤ì¤Î¹âµ¡Ç½ÈǤǤ¢¤ë¡ÖDeveloper Buddy v1.02¡×¤ò¥¬¥·¥¬¥·¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ì¤Ð¡¢¼«Ê¬¤ÎÍߤ·¤¤¥â¥Î¤¬¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡£
¡ÖDeveloper Buddy v1.02¡×¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤Ë¤Ï¡¢"Click here to download"¤ò¥¯¥ê¥Ã¥¯¤·¤¿¤é¡¢¥ê¥ó¥¯Àè¤Î²¼Éô¤Ë¤¢¤ë¡ÖI have read and accept the terms and conditions¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢nsfÆþ¤ê¤Îzip¥Õ¥¡¥¤¥ë¤¬¥À¥¦¥ó¥í¡¼¥É¤Ç¤¤Þ¤¹¡£¡ÖDeveloper Buddy¡×¤ÎÀâÌÀ½ñ¤¤Ï¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£
================================
¡¡¤½¤¦¡¢¤³¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¡¢»ä¤¬¤Þ¤È¤á¤¿¤¤¤È»×¤Ã¤¿¡¢¤¹¤Ù¤Æ¤ÎÎã¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£
¡¡¿·¤·¤¤¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò»Ï¤á¤¿¤¤¤È»×¤Ã¤¿¤È¤¤Ï¤¤¤Ä¤Ç¤â¡¢¼«Ê¬¤Î¡ÖDeveloper's Buddy¡×¤ÎÃæ¤«¤é¥Ô¥Ã¥¯¥¢¥Ã¥×¤·¤¿Àß·×Í×ÁǤò¥Ù¡¼¥¹¤Ë¹½ÃÛ¤·¤Þ¤¹¡£¤³¤³¤Ë¤Ï¡¢¼«Ê¬¤¬ºî¤Ã¤¿code¤ä¡¢Â¾¤«¤é»ý¤Ã¤Æ¤¤¿code¤¬µÍ¤Þ¤Ã¤Æ¤Þ¤¹¡£
¡¡¤³¤Î¥¢¥×¥ê¤Ï¡¢¥Î¡¼¥Ä¥¯¥é¥¤¥¢¥ó¥È¤Ç¤âWeb¥Ö¥é¥¦¥¶¤Ç¤â¼Â¹Ô²Äǽ¤Ç¤¹¡£¤Þ¤¿¡¢Excel½ÐÎÏÍѤÎɸ½àŪ¤Ê¥Õ¥©¡¼¥à¤ä¥Ó¥å¡¼¤ò¤¹¤Ù¤Æ´Þ¤ß¤Þ¤¹¡£¤½¤·¤Æ¡¢Tips¤ä°úÍѤä¹âÅ٤ʸ¡º÷¤ò²Ã¤¨¤Æ¤Þ¤¹¡£
¡¡°Ê²¼¤Î¥ê¥¹¥È¤¬¡¢¤³¤ÎDB¤Ë´Þ¤Þ¤ì¤ëÍÍ¡¹¤Êµ¡Ç½¤Ç¤¹¡£¤½¤·¤Æ¡¢¤³¤ì¤é¤ò¸ø³«¤·¤Æ¤¯¤ì¤¿³§Íͤ˴¶¼Õ¤·¤Þ¤¹¡£
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | 1 | 2 | 3 | 4 | 5 | 6 |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | - | - | - | - | - | - |