I will like to call a .rtf in vb 6.0 or a pdf file. i am doing my project work that i need it to call for documentation of the software.
I will like to call a .rtf in vb 6.0 or a pdf file. i am doing my project work that i need it to call for documentation of the software.
The Rich Text Format (RTF) Specification provides a format for text and graphics interchange that can be used with different output devices, operating environments, and operating systems. Make an RTF file in Wordpad... Just type a few characters then hit save, and use the rich text format. Then, open that file in NOTEPAD. Create a new string variable in your VB program, lets call it strRTFBox.
for more info check here:Code:strRTFBox = (copy the header ONLY from the RTF opened in NOTEPAD here).
To open .pdf file in Vb
Hope this helps.Code:Option Explicit Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Const SW_SHOWNORMAL = 1 Private Sub Command1_Click() Call launchIt("c:\yourFile.pdf") End Sub Private Sub launchIt(strPathAndFile As String) ShellExecute Me.hwnd, vbNullString, strPathAndFile, vbNullString, "C:\", SW_SHOWNORMAL End Sub
Bookmarks