Web Forms :: Viewing A Microsoft Publisher File?
Jan 28, 2011how to open a publisher file? I used the mime type "application/x-mspublisher" but its not working.
View 3 Replieshow to open a publisher file? I used the mime type "application/x-mspublisher" but its not working.
View 3 RepliesIn our application, we allow user to upload documents which can be PDF, Doc, XLS, TXT. Uploaded documents will be saved on web server. We need to display link for each document user uploaded and when user click on that link, it should open relevant document. it is expected to have required software to open relevant documents.
To upload document, we use saveAs method of FileUpload control and it works absolutely fine.Now, how to view it?I believe, i need to copy/download file to local user machine and need to open it using Process.Start.For that i need to find user local temp directory. if i put path.GetTempPath(), it gives me web server directory and copy file there.
File.Copy(
sPath + dataReader["url"].ToString(),
Path.GetTempPath() + dataReader["url"].ToString(),
true);
I am viewing a file on my web page
Response.WriteFile(filepath).
In IE, if I view document properties or if I click File - send, the document name is the name of the web page - pdfviewer.pdf. How can I specify the file name, without prompting the user?
We are operating an ERP layered architecture using SOA, developed in asp.net (c#) with the help of Nhibernate(spring ver 1.1.1.0) in Windows 2003 Server. When viewing a quite large output file we encounter an error; "ComException(0x80000237): the file size was not large enough to format the contents of an object in the report failed to export the report". We checked the ways & means to increase the temp directory in windows.
View 1 RepliesI have a web page in my project that views a selected pdf file. The problem is the file stays locked with the process w3wp.exe which I assume is the adobe file reader or something. How I can release this process after viewing it? Or another way of viewing it without locking the file?
Here is how I am doing it:
Code:
Dim File1 As String = System.Configuration.ConfigurationManager.AppSettings("Report")
Dim R1 As String = Page.Request.QueryString("r")
If R1 <> "" Then
Dim path As String = File1 & R1
[Code]..
I need to preteect text file from vewing because it include usernam and password
View 1 RepliesI am having list of records to insert in the sql. For that i need to get the sheet name.
How to get the sheet name of the excell in code behind.
im facing the below issue can anyone tell me how to resolve itCould not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
View 5 RepliesI want to use some features of namespace Microsoft.VisualBasic.CompilerServices but I am unable to get CompilerServices Class in Microsoft.VisualBasic. whenever I write imports Microsoft.VisualBasic. intelesences does not show me CompilerServices tell me sutable reason to resolve this. I am using vs3.5, even though visual studio allow me to import Microsoft.VisualBasic but using only this my requirement will not fullfill.
View 3 RepliesI need to develop a quick web site, visually appealing for a friend starting small business.I can do it using Publisher. It is mostly static web site except that he wants to add features like downloading documents etc from web site. Does anyone know if this could be accomplished using Publisher?Can those htm files be edited in Visual Studio?
View 3 Replieshow to make shopping cart with the help of PayPal using asp.net with c#, and i am using sql server 2005 as back end
View 1 Repliesi have an aspx page with one button on it the name of the page is Default.aspx
i have a physical microsoft office word file in the c drive
what i want to do is that when i press a button i open a microsoft office word located on the c drive then i add some text to it using c# code
then i want to open the file (that i edited and located in memory) in mircosoft office word to see the text that i have added
everything works fine but when i press the button i get a prompt that says do you want to open the file or save it .
questions:
so how can i directly open the file (located in memory) in microsoft office word without this prompt
also if i choose open from the prompt the file opens in the read only mode and the title of the file in the microsoft word become the name of the aspx page which is Default.aspx
so what is going wrong here
[Code]....
PRB .NET User controls is considered published by an "Unknown Publisher" from my ASP.NET pages.We have a .NET User conrol, based off the UserControl class and coupled with the IObjectSafety interface that generates a "Unkown Publisher" warning message when our control is deployed from our ASP.NET applications. The warning pops up as a dialog from the browser, asking the user if they want to install our control, saying that it is from an "Unknown Publisher".1) Our <OBJECT> tag is scripted correctly in our page as such:
<object
id=objMyControl
classid="CLSID:########-####-####-####-########"
codebase="MyControl.dll#-1,-1,-1,-1"
style="visibility: hidden; width: 0; height: 0;"
></object>
2) We activated the "Make assembly COM-Visible" and "Register for COM Interop" from the Visual Studio C# project settings.
I have a project using Crystal Reports 2008, whenever I try to print the report, using the print button on the menu I get an error on one of my machines, the Crystal Print Dialog opens, completely empty and then I get a error from windows:
Windows has blocked this software because it can't verify the publisher.
Name: PrintControl.cab
Publisher: Unknown Publisher
This is only happening on my Windows 7 machine. The solution on my Windows XP machine works fine, even if I hit the site under XP from my 7 machine, so I'm assuming something didn't install properly on 7. Any ideas? The 7 machine print dialog comes up blank, just says Print on the title and then the error comes up. The XP machine Print dialog says Print in the title and says Crystal Reports Print Control before the print options come up.
how to convert videos in .flv format using asp.net mvc...
View 1 RepliesI was working with asp.net + nservice bus Its working fine with one subscriber but when I specify another subscriber in webconfig It throws me error.
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="EmailChannel" Endpoint="MyServerInputQueue"/>[code]....
i've deployed an asp4 site to rackspace.com using the vs2010 publisher; the default page is rendering ok, but when i click on the login button i'm getting the following error and trace
[FileLoadException: Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)]
[FileLoadException: Could not load file or assembly 'ManagedCPPAPI.netmodule' or one of its dependencies. Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)][code]....
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
trying to upload from an .xls file to microsoft sql server.What i did was i upload the file to a folder in server and pick the record from the folder. This work on development machine but on getting to a iis server to test the application i got an error that was saying the root folder for the www root for the folder was not found.
<pre lang="msil">protected void btnUpload_Click(object sender, EventArgs e)
{
string FileName = FileUpload1.PostedFile.FileName;
string saveDir = @"";
string appPath = Request.ApplicationPath;
string savePath = appPath + saveDir + Server.HtmlEncode(FileUpload1.FileName);
String fileExtension = string.Empty;
String path = Server.MapPath("~/Uploads/");
[Code]....
We have developed apllication in Microsoft VS 2008 and when we opening this same application with Microsoft VS 2010. Then it's asking to convert.
So can anybody tell me what it is converting exactly. Means it's open application in Microsoft VS 2010 and running properly also. But i am understanding whats happning while converting.
For some reason neither SQL managment studio nor import and export wizard works on my friends network due to some security policy
i asked a question about OSQL two days ago and StackOverflow guys told me it is going to be obselete and that i should use SQLCMD instead.
to cut long things short my question is very precise:
using SQLCMD..1-need to import and export command from AND to MDB/MDF
2-need attach / detach commands
I face some problems while I host my web application(which is a PowerBuilder V12.0 .Net Web Appliaction Developed By PB V12.0 Classic or Migrated from Old PB Versions as the project files are Converted to ASP.Net *.aspx files) in IIS V6.0 on Windows Server 2003and After Installation of .Net Framework Version 4.0 to match the web application which requires .Net Framework 2.0+
The Error Message I get is as follows:-
Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.
Description:
An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Code]....
I am working on project in VS 2008 (ASP.Net, C#).
When I view a page in browser it throws following error.
Could not load file or assembly 'Microsoft.Licensing.Permutation_f50a9_2.0(1907)' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Licensing.Permutation_f50a9_2.0(1907)' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Source Error:
[Code]....
Hi,
I am trying to developing a project which is getting mssql version, creating tables,views and insert default datas to database.
I have to develeope it working in MSSQL 2005-2008.
Now my project uses using Microsoft.SqlServer.Management.Smo; using Microsoft.SqlServer.Management.Common;
name spaces from MSSQL dlls.it works fine in serves which has MSSQL2008.Bu d-today i tried it in a server which has MSSQL2005 nad it failed.
Error;
Could not load file or assembly 'Microsoft.SqlServer.SqlClrProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
So.Where can i find this namespace and and i need to add this namespace dll to my project.
Else i need another way to do these process working in 2005 nad 2008.
I am getting this error that is related to ReportsViewer. I need to eliminate all references to this library. So where do I need to start deleting the references?
Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
I keep getting this strange error (below) on my local machine on the first time the page loads,
Then if I reload it - it loads correctly...
What is really strange is that it does not happen on the server (same settings)
I'm using AJAXControlToolkit.dll version 4.1.40412.2
and this script manager (if not I get the Common.Common.js error)
[Code]....