|
Free VB ebookAutomation Word - game forms builder Version 1.00 and Visual Basic eBook (c) by Valery V Shmeleff Moscow/Russia www.oflameron.ru and www.oflameron.com TCP and Winsock (Ebook) Free eBook Templates Web Design Free hosting WallpapersThis ebook shows how to use OLE automation by creating and editing MS Office Word document. If you are a beginner and you want to know more about OLE, then you should read this ebook.
|
|
Free VB ebook
|
|
|
- fast generation of a completely original game form (game table) based on a template (Word document in the XML format). For a form to be quickly put together, the values of 4 bottom levels only are generated. Nevertheless, this proves sufficient to produce a game table which for all intents and purposes will be original.
Illustration of the process of game form generation.
|
||||
|
Dim wrd As New Word.Application ''Create Word as COM [ web1 ] [ web2 ] [ web3 ] [ web4 ] [ vb ] Dim Pt As String, St As String ''Declare variables Private Sub Picture2_Click() ''Standard generation of game form
St = App.Path ''Path to generator program St = St + "\oflameron-form2.xml" ''Path to XML template wrd.Visible = True ''Open Word Set doc = wrd.Documents.Add(St) ''Add Word doc Dim k, g For i = 0 To 15 For j = 0 To 59 Randomize ''Use random number generator k = Int((20 * Rnd) + 1) g = g + 1 frmOflameron.Caption = "Complete " + CStr(g) + " cells from 960" [ vb guide ] [ Free tutorials ] If k = 1 Then repltext = "1" If k = 1 Then FntColor = wdColorBlack ''Symbol color If k = 1 Then CellColor = wdColorWhite ''Cell background color +1 If k = 2 Then repltext = "-1" If k = 2 Then FntColor = wdColorBlack ''Symbol color If k = 2 Then CellColor = wdColorWhite ''Cell background color -1 If k = 3 Then repltext = "5" If k = 3 Then FntColor = wdColorBlack ''Symbol color If k = 3 Then CellColor = wdColorWhite ''Cell background color +5 If k = 4 Then repltext = "-5" If k = 4 Then FntColor = wdColorBlack ''Symbol color If k = 4 Then CellColor = wdColorWhite ''Cell background color -5 |
|
|
|
Free VB ebook
|
|
|
|
Free VB ebookThe program uses MS Word features: VB |Project| -> |References| -> and select "Microsoft Word 11.0 Object Library" if you use Microsoft Word 2003 (or "Microsoft Word 9.0 Object Library" and etc)
|
|
|
|
|
|
|
|
ee@oflameron.ru |