I'm using Visual Web Developer 2010 Express with SQL Server 2008 Express, VB.
The routine below should be opening EModelViewer.exe and does but with one problem.
Imports System.IO Imports System.Data Imports System.Drawing Imports System.Data.SqlClient Imports System.Configuration Imports System.Text Imports System.Collections.Generic Imports System.Linq Imports System.Web Imports System.Web.UI Imports System.Web.UI.Control Imports System.Diagnostics Imports System.Runtime.InteropServices Partial Class Test Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Dim Pdwg As String = "C:\bruce\allegro\circuitworks library\SOIC14.sldprt" Response.Clear() Response.ContentType = "emodelviewer.exe" Response.AddHeader("Content-Disposition", Pdwg) Response.Equals("C:\Program Files\Common Files\eDrawings2010\EModelViewer.exe") Response.End() End Sub End Class
It seems like this tries to open the actual program (Test.aspx) rather than the intended drawing (SOIC14.sldprt). Does anybody know how to transmit the drawing name rather then the routine name with the response command?
Thanks!