Click here to Skip to main content
15,898,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCheck whether SQL server is installed or not Pin
Rupsaa18-Jul-08 1:33
Rupsaa18-Jul-08 1:33 
AnswerRe: Check whether SQL server is installed or not Pin
CPallini18-Jul-08 1:42
mveCPallini18-Jul-08 1:42 
JokeRe: Check whether SQL server is installed or not Pin
MBCDC20-Jul-08 6:42
MBCDC20-Jul-08 6:42 
AnswerRe: Check whether SQL server is installed or not Pin
jzonthemtn18-Jul-08 2:22
jzonthemtn18-Jul-08 2:22 
AnswerRe: Check whether SQL server is installed or not Pin
Jamal Abdul Nasir18-Jul-08 10:37
Jamal Abdul Nasir18-Jul-08 10:37 
QuestionDriving a Logitech QuickCam Express Pin
taffy_design17-Jul-08 23:04
taffy_design17-Jul-08 23:04 
AnswerRe: Driving a Logitech QuickCam Express Pin
jzonthemtn18-Jul-08 2:32
jzonthemtn18-Jul-08 2:32 
QuestionWord Automation Help Pls using vb6 on client and apsx, vb.net on server 2003 Pin
grasshopper417-Jul-08 21:48
grasshopper417-Jul-08 21:48 
Hi All,

I am writing a program to open a word document located in the server from a client application using which is using VB6. the vb.net application is a setup as a web service on our server. i went to the dcomcnfg and did the necessary configurations and set impersonate to true with a user name and a password and that bit works fine.

But when it creates a document it gives the following error message which i have tried to workout for the last two hours without success.

This is my code

<webmethod()> _
Public Function Regional_Franchise_Agreement(ByVal BusinessID As String)
Try

With Check_Session(Context)

wa = New Word.Application()

'Open and change the Regional Disclosure Document 04 06 08
wd = wa.Documents.Open(stTemplate_Location & "/Regional_Franchise_Agreement_04_06_08.doc")
wa.Visible = False

If htMain.Item("Special_Conditions").ToString = "0" Then
wd.Bookmarks.Item("SpecialConditions").Select()
wa.Selection.Delete()
Else
Call Find_and_Replace("[Special_Condition_Text]", htMain.Item("Special_Condition_Text").ToString)
End If
'wd1.SaveAs(stOut_File_Location & "/" & htMain.Item("Company_Name").ToString & "_" & htMain.Item("ABN").ToString & "/Regional_Franchise_Agreement_04_06_08.doc")
wd.SaveAs(stOut_File_Location & "/Regional_Franchise_Agreement_04_06_08.doc")
End With
Catch ex As Exception

Insert_Signup_Warnings(BusinessID, 1, ex.Message)
Finally
wd.Close(Word.WdSaveOptions.wdDoNotSaveChanges)
wa.Quit()
wd = Nothing
wa = Nothing
ChDir("c:/")
End Try
End Function

Thanks in advance for ant help.

This is the error Message:
System.NullReferenceException: Object reference not set to an instance of an object.
at FMS4NET.FSO_Signup.Regional_Franchise_Agreement(String BusinessID) in C:\Inetpub\fms4net\kanchana.ratnayake\App_Code\FSO_Signup.vb:line 58



Kev
QuestionTrtanslation vb -&gt; c# Pin
nelsonpaixao17-Jul-08 13:19
nelsonpaixao17-Jul-08 13:19 
AnswerRe: Trtanslation vb -&gt; c# Pin
Paul Conrad17-Jul-08 16:40
professionalPaul Conrad17-Jul-08 16:40 
AnswerRe: Trtanslation vb -&gt; c# Pin
Pawel Gielmuda17-Jul-08 22:11
Pawel Gielmuda17-Jul-08 22:11 
AnswerRe: Trtanslation vb -&gt; c# Pin
sumit703417-Jul-08 23:23
sumit703417-Jul-08 23:23 
AnswerRe: Trtanslation vb -&gt; c# Pin
sumit703417-Jul-08 23:27
sumit703417-Jul-08 23:27 
AnswerRe: Trtanslation vb -&gt; c# Pin
Guffa18-Jul-08 3:09
Guffa18-Jul-08 3:09 
JokeRe: Trtanslation vb -&gt; c# Pin
nelsonpaixao18-Jul-08 13:48
nelsonpaixao18-Jul-08 13:48 
GeneralRe: Trtanslation vb -&gt; c# Pin
Guffa19-Jul-08 1:18
Guffa19-Jul-08 1:18 
AnswerRe: Trtanslation vb -&gt; c# Pin
Dave Doknjas18-Jul-08 9:18
Dave Doknjas18-Jul-08 9:18 
QuestionMy.Application.MinimumSplashScreenDisplayTime does not delay the main form load Pin
Marcus J. Smith17-Jul-08 3:36
professionalMarcus J. Smith17-Jul-08 3:36 
QuestionRe: My.Application.MinimumSplashScreenDisplayTime does not delay the main form load Pin
jzonthemtn18-Jul-08 2:25
jzonthemtn18-Jul-08 2:25 
AnswerRe: My.Application.MinimumSplashScreenDisplayTime does not delay the main form load Pin
Marcus J. Smith18-Jul-08 3:03
professionalMarcus J. Smith18-Jul-08 3:03 
GeneralRe: My.Application.MinimumSplashScreenDisplayTime does not delay the main form load Pin
jzonthemtn18-Jul-08 3:23
jzonthemtn18-Jul-08 3:23 
QuestionHashcode to string Pin
~V~17-Jul-08 2:48
~V~17-Jul-08 2:48 
AnswerRe: Hashcode to string Pin
Tom Deketelaere17-Jul-08 3:33
professionalTom Deketelaere17-Jul-08 3:33 
AnswerRe: Hashcode to string Pin
Guffa17-Jul-08 7:49
Guffa17-Jul-08 7:49 
AnswerRe: Hashcode to string Pin
~V~17-Jul-08 20:42
~V~17-Jul-08 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.