Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
4 Points
3 Posts
Feb 02, 2012 08:41 PM|LINK
I have a web application for reporting.The user wants to be able to call external applications as another feature.
- Access 2007
- excel 2007
- PDF - Prcess Start
- EXE - Process Start
- Word 2007
The new function works great local ost but will not display request at client to server 2008 r2.
The windows appear localhost but not on the server.
I have DCOM permissions set for microsoft office . Will this process run on 2008 r2. Supposedly this will work.
The apps just simplly wont render when executed on the server from the App......HELP!!!!! -
'Word
Dim removeData64 As String = reportpath.Replace("\\DataServer64\Avista\", "")
LTrim(removeData64)
Dim appword As Word.Application
appword = New Word.Application
Try
If (Session("externalword") Is Nothing) Then
Session.Add("externalword", removeData64)
appword.Documents.Open(FileName:=(removeData64))
End If
Catch ex As Exception
Me.lblUserMessages.Text = ex.Message.ToString()
Response.Redirect("~/default2.aspx")
End Try
========
'PDF
Dim pdfTmp As System.Diagnostics.Process
pdfTmp = New System.Diagnostics.Process()
If (Session("externalpdf") Is Nothing) Then
Session.Add("externalpdf", removeData64)
pdfTmp.StartInfo.FileName = removeData64
pdfTmp.StartInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Normal
pdfTmp.Start()
ieltd
Member
4 Points
3 Posts
Can't see Automated Applications in Web App when client to server vs2010(vb.net) & server 2008 r...
Feb 02, 2012 08:41 PM|LINK
I have a web application for reporting.The user wants to be able to call external applications as another feature.
- Access 2007
- excel 2007
- PDF - Prcess Start
- EXE - Process Start
- Word 2007
The new function works great local ost but will not display request at client to server 2008 r2.
The windows appear localhost but not on the server.
I have DCOM permissions set for microsoft office . Will this process run on 2008 r2. Supposedly this will work.
The apps just simplly wont render when executed on the server from the App......HELP!!!!! -
'Word
Dim removeData64 As String = reportpath.Replace("\\DataServer64\Avista\", "")
LTrim(removeData64)
Dim appword As Word.Application
appword = New Word.Application
Try
If (Session("externalword") Is Nothing) Then
Session.Add("externalword", removeData64)
appword.Documents.Open(FileName:=(removeData64))
End If
Catch ex As Exception
Me.lblUserMessages.Text = ex.Message.ToString()
Response.Redirect("~/default2.aspx")
End Try
========
'PDF
Dim pdfTmp As System.Diagnostics.Process
pdfTmp = New System.Diagnostics.Process()
Dim removeData64 As String = reportpath.Replace("\\DataServer64\Avista\", "")
LTrim(removeData64)
Try
If (Session("externalpdf") Is Nothing) Then
Session.Add("externalpdf", removeData64)
pdfTmp.StartInfo.FileName = removeData64
pdfTmp.StartInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Normal
pdfTmp.Start()
End If
Catch ex As Exception
Me.lblUserMessages.Text = ex.Message.ToString()
Response.Redirect("~/default2.aspx")
End Try