![]() |
Automating RESUMate using DDE |
| TechNote | « Return to Support |
|
Introduction There is an unsupported feature in RESUMate which lets you automate the program in a very simple fashion. It uses an older Windows technology called Dynamic Data Exchange (DDE). We've used this feature in RESUMate to automate some of our in-house utilities, and are making this document available to anyone wishing to try and do the same. Again, this is an unsupported feature of the program. We are unable to educate you in how DDE works, or how to get started (beyond the instructions here), and there is programming knowledge required in order to take advantage of this feature. If you have a specific question or difficulty, we will do our best to help you, but cannot guarantee that your question will be answered. Getting Started First, you must have RESUMate itself running; the DDE interface was written primarily to retrieve information from the currently displayed record. Second, you must have some other application running that can act as a DDE client. This includes Microsoft Word, for which some sample code is provided below. The following settings are required, regardless of which client you use to create the DDE link: Application: "RESUMate 11" (could also be "RESUMate 10", "RESUMate 2006", "RESUMate 2005", "RESUMate 2003" - it simply has to match your version of RESUMate) Commands In addition to the Application, Topic, and Item settings, you need to supply a command through your client to the RESUMate application (acting as the DDE server). This command specifies an action for RESUMate to perform, or is a request for a certain piece of information relating to the currently displayed record. For commands with parameter values, the command is followed by a colon character (:), which is required in your code, and the parameters have been enclosed in the following brackets: <> Information Retrieval Commands The following commands retrieve corresponding values from the current record of the top-most window. Telephone:<Description> Checkmarks:~Title~:<ColumnTitle> ~After~:<Item> ~Before~:<Item> Memo:<Title> Item:<ItemName> Person Window: FirstName, MiddleName, LastName, UserId, Country, AddressLine1, AddressLine2, AddressLine3, City, State, ZipCode, Text1, Text2, Text3, Text4, Text5, Text6, Date1, Date2, Date3, Date4, Date5, Date6, CompanyName, CompanyCountry, CompanyLine1, CompanyLine2, CompanyLine3, CompanyCity, CompanyState, CompanyZip For the person window, the "Company" fields refer to the directly linked company, if there is any, which appears just below the six date fields and above the six text fields. Company Window: Name, UserId, Country, AddressLine1, AddressLine2, AddressLine3, City, State, ZipCode, Text1, Text2, Text3, Text4, Text5, Text6, Text7, Text8, Date1, Date2, Date3, Date4 Job Order Window: JobTitle, JobActive, UserId, Text1, Text2, Text3, Text4, Text5, Text6, Text7, Text8, Text9, Text10, Date1, Date2, Date3, Date4, Date5, Date6 Action Commands The following commands perform some type of action in RESUMate. They should be used with caution, and should only be tested after making a current backup of your database file. Open Database:<RDBFileName> Close Database Open Person Open Company Open JobOrder Open Calendar Go First Go Previous Go Next Go Last SetControl:<ItemName>:=<Value> SaveWindow Sample Word Document Code Following is some sample code adapted from a document we use here at RESUMate. The primary purpose of this code is to grab the current record's name and address, and fill the information into corresponding fields (with the appropriate bookmark labels) in a Word document. You can download the sample word document containing this code at the following link: Please note that for this sample to work, you must enable macros in Word, and have RESUMate running. Public Sub SetRESUMateAddress() Dim Channel As Long ' Replace this with your actual version of RESUMate On Error Resume Next ' Initiate a "DDE Channel" with the appropriate Exit Sub ' Next, execute the first DDE command. ' Now use DDERequest to get the item's value. ' Continue issuing commands, and checking DDEExecute Channel, "Item:AddressLine1" DDEExecute Channel, "Item:AddressLine2" DDEExecute Channel, "Item:City" DDEExecute Channel, "Item:State" DDEExecute Channel, "Item:ZipCode" ' Now, set the values retrieved for the ' Clean up the DDE session. End Sub |
|
| Copyright © 2010 - RESUMate, Inc. | « Return to Support |