Input Data from VB Application to Microsoft Word

Firstly you should design your own certificate in Microsoft Word. Look at mine :


Next Step, create bookmarks of Certificate Number, Name, and Date.

Use your pointer to highlight the “Certificate Number”.



Click Insert and choose Bookmark.



Fill the field, and click “Add”



Then, use your pointer to highlight the “Name”.



Click Insert and choose Bookmark.



Fill the field, and click “Add”



Do the same thing like that, use your pointer to highlight the “Date”. Click Bookmark. Fill the field and then click Add button.

Save your document. I named it “Sertifikat.docx”.

Done? It’s only halfway!

Go to the next step, open your Visual Studio 2008.

Design your application :


Then click Project >> Add Reference


Click COM tab and choose Microsoft Word 14.0 Object Library, then click OK button.



Back to your application design interface, double click “Generate” button and fill this script code :



FINISH.

Easy right? Isn’t it? J


These are some screenshoots when the application run :

You just fill all the blank field and click “Generate”.


Voila!



3 komentar:

  1. wah mantap gan tutorialnya. ane mau coba nih vb.net untuk msworld.
    Hotel Murah di Jakarta

    BalasHapus
    Balasan
    1. Terimakasih. Silahkan gan di coba. Kalau ada pertanyaan mungkin saya bisa bantu.

      Hapus

 

Blogroll

Penawaran Menarik