Archive for Октябрь 2nd, 2008
Extract data from PDF files – fields, text, pages, bookmarks
This database was created for the purpose of helping people who want to parse values from fields on a PDF form, extract text from PDF files, pull the bookmark names, and extract individual pages from a PDF file. I pulled many of these examples from all over the web via google, and many of them from posts on www.notes.net, and I’m sure I did some searching on openntf.org. I am in no way taking credit for all of this code, but since it came from so many sources, and I did not keep up with them, I just saying it’s not all mine. I simply put about 20 examples into 1 place so that we could all share. Requirements: Built using Notes 7.0.2, also need Adobe Professional. I used Adobe Pro 7.x.. Must also have bookmarks in your PDF file. Again MUST HAVE ADOBE PROFESSIONAL. If you have questions, commnets or suggestions, please feel free to contact me at jason@ciaresearch.com. Be warned that this code is in no way complete. I guessed at many of the things I did in here because I could not find good and complete examples. Please share your thoughts, comments, code improvements with all of us. I will update code if I get any great ideas from people. Thanks for taking a look and I hope this helps many of you. Jason
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
In Place Merge Sort
According to Wikipedia InPlaceMergeSort is a pretty fast sorting algorithm (O(n log n) on average, O(n log n) worst case and O(1) memory usage.) Sub InPlaceMergeSort(vArray As Variant, nLow0 As Integer, nHigh0 As Integer)
Dim nLow As Integer
Dim nHigh As Integer
Dim nMid As Integer
Dim nEndLow As Integer
Dim nStartHigh As Integer
Dim vTemp As Variant
Dim nCount As Integer nLow = nLow0
nHigh = nHigh0
If nLow >= nHigh Then
Exit Sub
End If nMid = (nLow + nHigh) \ 2 Call InPlaceMergeSort(vArray, nLow, nMid)
Call InPlaceMergeSort(vArray, nMid + 1, nHigh) nEndLow = nMid
nStartHigh = nMid + 1 While nLow <= nEndLow And nStartHigh <= nHigh
If vArray(nLow) < vArray(nStartHigh) Then
nLow = nLow + 1
Else
vTemp = vArray(nStartHigh)
For nCount = nStartHigh -1 To nLow Step -1
vArray(nCount + 1) = vArray(nCount)
Next
vArray(nLow) = vTemp
nLow = nLow + 1
nEndLow = nEndLow + 1
nStartHigh = nStartHigh + 1
End If
Wend
End Sub Sub sort(vArray As Variant)
Call InPlaceMergeSort(vArray, Lbound(vArray), Ubound(vArray))
End Sub
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
How to export data From Notes document to MS Word using Lotussscript action button?
Hi! I have a big problem. I need to do the following thing: I have a Notes database where is a lot of documents, when i’m opening one document than there is an Action button which when pressed, opens an MS Word document and export all Notes document data to the MS Word document. The only thing i know, is to open blank Word document with this code (see in Usage/Example), But i don’t know, how to put Notes data into Word document! It’s seems to be a very easy LotusScript but i don’t know how to do that, but i need this Lotus Script with Action Button. Can anyone help me please? I will be very pleased if someone can give a sample code or good advice how to do that or a hyperlink to web page where is information about my problem! Best regards, Guntis!
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
ASNDSort Library
ASNDSort library is a collection of sort routines written in LotusScript. The routines can be used as is via an Include statement. Library includes BubbleSort, QuickSort, and MergeSort algorthms. Sorting is based on the type of information in the array, like number, datetime, or text.
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
LS-ERROR – Minimal Error Handling for Lotus Script
LS-ERROR describes a minimal yet powerfull approach to error handling in Lotus Script: http://lserror.sourceforge.net/ Here is the downloadable source code: http://downloads.sourceforge.net/lserror/lserror.lss The library is in the public domain.
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
Dojo – Easy As 123 – updated again: 21-May-08
I learn by seeing how things are done by others… I struggled with dojo because I could not find examples! This database has several dojo elements exampled. You will also see what is needed to incorporate dojo into your code, what needs to be installed locally/server and some different ways to use dojo (pass thru html or within field properties) credits: This database is a variation of a database used at a lotusphere 2008 session: SpeedGeeking. I have changed the name to prevent users from confusing this with the original… and not to take any credit for the work done by Scott Good or Henry Newberry. I saw dojo illustrated at Lotusphere, and read all about it on various Lotus/IBM sites.. however, reading the documentation at the dojo web sites didn’t help since I wanted to implement this on domino. After several days of experimentation I found Henry’s database and I could finally see dojo working. I needed more field types and after additional experimentation learned many things. This database will show you the things I learned, and hopefully, save you some time in your exploration. Feedback is welcomed, and my thanks are returned to Scott Good and Henry Newberry. This is not an application. This is a simple database with one view and one form with dojo type fields exampled on a form.
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
Login using AJAX
A small test NSF that shows how you can build login functionality into your web apps with out using the server default login form direct from your application using AJAX. The sample file is fully self contained and needs no other downloads to work. If you have any problems please let me know.
Original source : http://www.openntf.org/projects/codebin/codebin.ns…