|
|
|
|
|
|
For all of you who want to do more with Quotes than enhance email
or enjoy the screensaver here is how you can add Quotes to your website
or Microsoft Word.
Quotes supports a COM interface so everybody who want to program against this
interface from all Visual studio tools or Delphi can do this easily.
|
In Microsoft Word and other tools that support the VBA (Visual basic for
Applications) engine you can make your own macro's.
-
In the macro menu select 'Macros'
-
In the Macro window type 'Quotes'
-
In the Macro window select 'Create'
-
In the Visual basic editor go to the menu 'tools'
-
In the menu 'tools' select references
-
In the references check 'Quotes'
-
In the Visual basic editor paste this code inside the Quotes
sub(routine):
Dim oQuotes As Quotes.Data
Dim sQuote As String
Set oQuotes = New Quotes.Data
If oQuotes.GetQuote(sQuote) = True Then
'This writes a Quote to a worddocument
'write your own routine for Excel or another VBA tool
Selection.TypeText sQuote & vbCrLf
End If
Set oQuotes = Nothing
Use the ReadFirstText function of the Quotes.Signature class to retrieve the
contents of your complete signature in stead of a random Quote.
|
Programming the internet with Active Server Pages or using your Windows
scripting host (WSH) you can access Quotes like this.
Dim oQuotes
Dim sQuote
'You do not have to use the ASP server object in WSH 'just CreateObject will
do.
Set oQuotes = Server.CreateObject("Quotes.Data")
If oQuotes.GetQuote(sQuote) = True Then
'This writes a Quote to a HTML client using ASP
'write your own routine for WSH
response.write sQuote & vbCrLf
End If
Set oQuotes = Nothing
Use the ReadFirstText function of the Quotes.Signature class to retrieve the
contents of your complete signature in stead of a random Quote. |
Download the helpfile
of all Quotes classes.
|
You can write your own motion plugins for the Quotes screensaver. If you want
to know more about this please contact us.
|
|
|
|
|
|
|
|