Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










How To Embed Excel File With Macro In Aspx Page


I want to embed a excel file with macro in web page, and execute the macrowhen Iclick a buttoninthe excel file.

I use iframe to do it as following ,

<IFRAME WIDTH="75%" HEIGHT="55%" NAME="fframe" SRC="Calculator.xls">
<FRAME WIDTH="75%" HEIGHT="55%" NAME="fframe" SRC="Calculator.xls">
<EMBED SRC="Calculator.xls" width=200 height=100>
</IFRAME>

when i open this page via IE, It will prompt me to open or save this xls file.

But we do not want to show this prompt, we want to open it directly.

how can i do it ? or if any other solution can do the same thing?


View 3 Replies (Posted: Nov 29, 2010 09:25 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Embed An Html (or Aspx) File Within News.aspx Page?
how I can embed an html (or aspx) file within my news.aspx page. The only thing is I need to do it from within my code and not use the <!--include ... tag.

Posted: Feb 28, 2009 06:30 AM

View 7 Replies!   View Related
Can Import And Execute A Macro Into An Excel File?
Is it possible to have an .aspx page open an Excel file, import a macro (saved in a .bas text file), and then run it? I've been able to do this in the past from a MS Access application, but I have no idea where to begin with asp.net.

Posted: Oct 27, 2010 05:41 PM

View 1 Replies!   View Related
Embed Html File In Aspx Page
I have some html files. Those files were generated while converting pdf, ppt, doc files into html file using microsoft interop dlls. Inspecting these files, I tried to read the text using stream reader. But all I get is sort of encrypted characters. Although those are html files, I am seeing some special formatting while converting them into html files.

All I need is now to highlight some texts in those html files. So I am looking some means to embed those html files in aspx page and then use web page feature (using jquery ect.) to highlight those words.


Posted: Jun 11, 2009 12:17 PM

View 3 Replies!   View Related
Web Forms :: How To Embed A Child Page (aspx) In A Master Page (aspx)
what i wanna do is:

there is an dropDownList in the master page with 4~5 items.

i've prepared 4~5 sub-page related to the above item. when the dropDownList.ItemChanged, the subpage content will show their own page.

use html iframe to include another aspx page.

in my cs code:

[Code]....

but when i change the item in the dropdownlist, the error pops up:

[URL]

Posted: Apr 14, 2010 07:39 AM

View 1 Replies!   View Related
Web Forms :: Put <embed> Tag Within The <object> Tag In A .aspx File?
I try to put <embed> tag within the <object> tag in a .aspx file but it gives compilation error about not recognizing the <embed> tag.

Posted: Jul 01, 2008 05:51 PM

View 10 Replies!   View Related
Web Forms :: Embed Silverlight App In Aspx File?
I've created a silverlight application, MainPage.xaml has silverlight controls. The code behind of it will be definately in MainPage.xaml.cs file. When creating a silverlight app, I've selected a default web project wherein this silverlight app will be hosted and run. After all my work in MainPage.xaml.cs file, I want to integrate it in my default.aspx file. As i understand, I need to give reference to xap file in this aspx file. I tried accessing

<asp:Silverlight ID="xx" runat="Server.. />

tag but had no luck. This tag does not come up, Am i missing to add reference to any silverlight dll to my web application. Or is this tag applicable for Silverlight 2.0 and not 3.0 which I'm using:

<object data="SilverlightEmployeeExampleTestPage.aspx" width="100%" height="100%">
<param name="source" value="../ClientBin/SilverlightEmployeeExample.xap" />
</object>

Posted: Feb 14, 2010 06:38 AM

View 2 Replies!   View Related
Web Forms :: How To Embed Silverlight Xap Into Aspx Page
How to embed silverlight xap into aspx page. I have created students database. I want to keep search option to find student name. It should be done in silverlight. I want to embed that silverlight in aspx page.

Posted: Feb 21, 2010 05:00 AM

View 6 Replies!   View Related
Embed A Word Document Into Aspx Page Using C#?
How to embed a word document into a aspx page which should be runnable in the web page itself while running the aspx page.

Posted: Apr 1 at 10:25

View 2 Replies!   View Related
Javascript - How To Embed A Static HTML Page In Aspx Page
I have a static HTML page complete with client-side scripts and css (both are included in the html). I was wondering if it would be possible to embed this HTML page into an ASPX page and have the ASPX page be able to respond to javascript events that are raised from within the static html document? Does asp.net provide a specific control for this or can I use a frame?

Posted: Mar 7 at 2:27

View 3 Replies!   View Related
Web Forms :: Trying To Embed A Flash SWF File Into Page?
I'm trying to embed a Flash SWF file into my aspx page, however I do need to have a fallback in case the users browser does not have Flash support (i.e. iPhone, iPad etc).

how to embed a flash SWF file which then falls back to a .jpeg or .gif (which I have) IF the flash support is not available? The SWF file is basically just an advert, but it is quite important.

Posted: Feb 03, 2011 10:27 AM

View 3 Replies!   View Related
Web Forms :: How To Embed Flash File In Page Having Features Like Video Displayed In Youtube
i want to embed flash file in asp.net page.I have used below code for same:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/

Posted: Feb 12, 2011 01:10 PM

View 1 Replies!   View Related
C# - Opening Excel File From Server Aspx?
I have the following X.aspx code..to download excel file from Server

[code]....

The file you are trying to open 'x.aspx', is in a different format that specified by the file extention....

How can I let excel know the correct file name ..

Posted: Oct 30 10 at 12:36

View 1 Replies!   View Related
Error Trying To Open Excel In Aspx File?
I'm trying to open Excel from an aspx and get following error;

Exception Details: System.Exception: Cannot create ActiveX component.

Here's the code I am using.

Dim objExcel as Object
Dim objWorkbook as Object
objExcel = CreateObject("Excel.Application") <-- Fails here
objWorkbook = objExcel.Workbooks.Open("C:InetpubwwwrootDashboardsget_database_data.xls")

I also tried another alternative that I found on the web

<%@ import Namespace="Microsoft.Office.Interop" %>

Dim objExcel as New Excel.Application <-- Fails here

and get the error

Compiler Error Message: BC30002: Type 'Excel.Application' is not defined.

Posted: Jan 24, 2009 01:25 AM

View 4 Replies!   View Related
Web Forms :: Excel Sheet Embed In A Webpage?
I have an Excel worksheet. That I somehow have managed to embed onto the webpage. My question is: Is it possible for me to get the background colors, the font used and text color used in the worksheet to show up on the webpage? T

The code I used to embed the sheet is this

[Code]....

Posted: Nov 30, 2010 07:13 PM

View 4 Replies!   View Related
Web Forms :: How To Export Aspx Page To Excel
How can I export an aspx page to excel?

There are 10 repeaters list the query result, and there are some header, label, remarks, logo that display on an aspx page.

So, I just want to export the whole aspx page to a worksheet in an excel file.

I use ASP.NET and VC#. Does it has any full source code example?

Posted: Aug 26, 2009 08:44 AM

View 5 Replies!   View Related
Importing To Aspx Page From User's Excel Spreadsheet?
I have a requirement that the user will need to import a list of ID's to the asp.net website from their own spreadsheet. I will provide a button 'btnImport' which will use an OleDbConnection to read the spreadsheet and pull in the id's. I have that working fine in my local dev environment. My question is, when this app is running on a production server, will the user have to upload her spreadsheet to the server first? Or do I need to provide code that will find the file on her machine? I'm not sure how this part of it works.

Posted: Mar 21, 2011 01:46 PM

View 4 Replies!   View Related
Visual Studio :: Adding A Server Control On Aspx Page Does Not Add Events In Aspx.designer.vb File?
I work in VS 2008. Whenver I add a server control(Label) and set it properties in aspx.vb and build the solution, I get the error "Label1 not declared". While analyzing this issue I noticed that the event handler statements for the Label1 where not added in the designer.asp.vb file. These statement would actually be added automatically when I drag and drop a control to my webpage.

I would also like to inform the scenario after which this problem came to me. I was working in VS 2008 , VS 2005 and VS 2003 in the same machine.Could this have caused the issue ?

Now each and everytime when I add a control, I am adding the "With Events" code in the designer page to make my build succesfull which makes me to spend more efforts.

Posted: Oct 05, 2010 12:14 PM

View 2 Replies!   View Related
Web Forms :: Embed HTML In ASPX But Not IFRAME?
i need Embed and HTML page with ASPX page ....

the html page is a simple page which include "<html><head><body> .... Some Content ....etc".

and also the aspx page is a simple also, so when the customer open "index.aspx" this will open aspx page but with HTML Content.

i dont need to use IFRAMES,

the code for asp.net will read the HTML content and put it in aspx in run time.

Posted: Apr 23, 2010 09:26 PM

View 5 Replies!   View Related
Easy Way To Display An Existing Excel Sheet In A .aspx Page
I would like an easy way to display an existing excel sheet in a .aspx. page.

Posted: Aug 13, 2009 02:07 PM

View 3 Replies!   View Related
Exporting Aspx Report To Excel Page Without Using Any Asp Component Like Datagrid?
I needthe code for exportingaspx report page(static content without any html component but contains css style) to excel page without using any asp.net component like datagrid or any other.Please send me the complete code.

Posted: Feb 04, 2011 12:40 PM

View 5 Replies!   View Related
Web Forms :: How To Change Worksheet Direction When Export From Aspx Page To Excel
I amexporting dataTable from aspx page to excel use the regular way-

response.ContentType = "application/vnd.ms-excel";response.AppendHeader("content-disposition",
"attachment; filename=" + FileName); etc...

i need the worksheet directionto be right to left,

Posted: Aug 11, 2010 06:49 AM

View 5 Replies!   View Related
Web Forms :: Embed And Pass Values Dynamically In Aspx Pages?
I am using flow player for my online tutorial site, which passes values dynamically. i.e. i am passing course id values, each id values having separate videos. Here is my code:

<a href="Content/Video/2-record-ppt-presentation.mp4"
style="display:block;width:520px;height:330px" id="player"></a>
<script type="text/javascript" src="js/flowplayer-3.2.4.min.js"></script>
<script type="text/javascript" language="JavaScript">
flowplayer("player", "flowplayer-3.2.5.swf");
</script>

My requirement is i want to pass url values in 'href' dynamically.And i am using vb code behing in asp.net.

Posted: Feb 08, 2011 04:59 AM

View 2 Replies!   View Related
DataSource Controls :: How To Create User Ability To Upload Excel To Sql And Display Results As Table On .aspx Page
Hardware involved:
SQL Server 2000
Microsoft Server 2003 with IIS6 [code]...

The goal, from internal department (user) perspective:A department wants to "upload" an excel spreadsheet of data (product, term, rate, etc) to SQL (this will be from the internal network). The data is then saved to a webpage location for that department to view and approve. Once "approved," this data is displayed on the live web servers (public-facing website which is two load balancing servers).
Bonus:

The .NET application/SQL Server can send an email to the department reminding them to upload the latest rates (each weekday morning, then each Thursday afternoon) if rates have not yet been "approved."

From the development perspective, this is my general idea, but I may be wrong.There are three spreadsheets, each with one tab. The first spreadsheet is uploaded, and the .NET application puts it in a SQL table. I then need to display this table of data on a .aspx page for the department to approve before the .aspx page is pushed to the live web servers.

First, I need an interface for this department to upload Excel files. I need this application to save the data to SQL and display it in a .aspx page so that the department can look it over and approve it. The department needs a way to "approve" the page, and this action will push the data to the live web servers. Will this involve SQL data transformation services?

Posted: Mar 12, 2010 04:23 PM

View 2 Replies!   View Related
Web Forms :: To Get Filename And File Path Using HTML File Control In Aspx Page?
I am using HTML file control and HTML image control in .aspx page (for uploading image and showing on web page). It is working fine. But I am unable to get that uploaded image file path and file name in .aspx.cs page. And also tell me how to save selected image in MS ACCESS database.


Posted: Jan 06, 2011 03:27 AM

View 4 Replies!   View Related
Web Forms :: File Download Fails And Report Aspx Page As The File?
[code]....

I've tried various MIME types as well as using the file name and use FileWrite. The Save File dialog ppears. If I choose Open, the contents appear as they should in the text file. If I choose Save, IE8 fails and tells me it cannot download KidsID.aspx (name of the page producing and downloading the file. The variable strFriendlyName contains the file name I want to appear in the dialog and strFileName is the actual name of the file located in the directory kidsid set as a virtual directory with appropriate permissions off the web site. Also, it runs just fine on my development machine using the VS8 development server.... it fails on IIS6 on the production server.

Posted: Oct 29, 2009 07:22 AM

View 5 Replies!   View Related
Can Embed The File In HTML
I have downloaded a new font file. I want to use this font style in my html page. How do i embed the file in HTML?

Posted: Jan 27 at 11:31

View 2 Replies!   View Related
Embed Wmv File Into Webpage?
I'm trying to get a wmv file to play in a webpage. I've created a simple html page and when I test the page using VS2008 internal browser, the wmv file plays. However, if I test it using IIS, the video won't play.The page opens, but the wmv file is black and just won't start.I have autostart set to true.

I thought the problem was with the mime type in IIS, so I tried adding the extension and mime type, but that made no difference.

See the code that I'm using below.

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[Code]....

Posted: May 23, 2009 04:46 PM

View 5 Replies!   View Related
Difference Between The Source Code For The .aspx Page And The Code In The .aspx.vb File?
What is the difference between the Source code for the .aspx page and the code in the .aspx.vb file?

Posted: Apr 08, 2009 02:25 PM

View 2 Replies!   View Related
Web Forms :: Embed A Mp3 Audio File?
i need to play an mp3 file in my webpage i have embeded the following code to a label inorder to play my audio file. I am getting the url from th backend .

string VideoID = dal.displayVideosbydataid(ent);
lblmp3.Text = "<object id='Player' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'><param name='autoStart' value='True'><param name='URL' value=value='" + VideoID +"'><param name='rate' value='1'><param name='balance' value='0'><param
name='enabled' value='true'><param name='enabledContextMenu' value='true'><param name='fullScreen' value='false'><param name='playCount' value='1'><param name='volume' value='100'></object>";

Posted: Aug 25, 2009 10:48 AM

View 11 Replies!   View Related
Flash - Embed Swf. File Programmatically?
I have swf files and i read this files from database. My q. is how can I embed this files in asp.net.

Posted: Jun 23 10 at 13:50

View 1 Replies!   View Related
AJAX :: Embed JS File As Web Source In 3.5?
I am tring to create custom server control using VB.net.I update theAssemblyInfo.vb file to write down webresource, path is also correct. But whn i render the control in web site and try to call JS function which define in cnotrol's JS, it gives me error for Undefine.

Posted: Apr 19, 2010 10:20 AM

View 8 Replies!   View Related
Databases :: Page Times Out Reading Excel File?
I have some code that reads records from an excel file and then imports that data into an sql database. The issue only happens when the excel file has more then 350 rows in it. In the middle of the import it just stops executing and I get directed to the 'Internet Explorer cannot display the webpage' page or just a blank page when using firefox.

I dont get any time out errors or any error at all but still I tried messing around with the script timeout settings but still does the same thing at about the 2 min 30 sec mark.

[Code]....

Posted: Mar 31, 2010 04:17 PM

View 2 Replies!   View Related
Databases :: Reading Hyperlinked Page In Excel File Using C#?
I understand how to use a connection string object to read excelsheets. What I don't know is how to follow a hyperlink inside excel, grabmatching data from the linked page and return it to my database. Essentially,the spreadsheet has two columns:

Title|Class#

Class# has the hyperlink which links to an internal web site. The connected page has a course description and any pre-required classes that must be taken before you can take this class. This is where I'm rather stumped as I've not had to do this type of thing before.

Posted: Nov 19, 2010 04:33 PM

View 4 Replies!   View Related
Code To Fill And Download Excel File From Page?
i have a project that need me to make a web form in asp.net ,from this page the user can choose a date and download an excel file. this excel file has a digram for many stations,each station represented by a cell,each cell gets its data either from table called(operation_data or table called line_data). i don't know how to automatically fill the excel and allow the user to download it from the site based on the date he choose.

Posted: Jun 30, 2005 06:23 PM

View 1 Replies!   View Related
Web Forms :: Display An Aspx File With A Dynamic Menu By Calling It From Another Aspx File?
I am trying to displayan aspx file with a dynamic menu by calling it from another aspx file. When executed everything works, exceptthe dynamic menu does not appear. (The menu works when viewing filewithmenu.aspx) What could I be doing wrong?

[code]....

Posted: Jan 19, 2007 02:34 PM

View 5 Replies!   View Related
Web Forms :: How To Read The Contents Of An Aspx File And Write Its Content In Another Aspx File
Currently, I have an asp page that on page_load it reads the content of an xml file and outputs its contents using response.write. How would I do that same type of thing, but with reading another aspx file? Here is what I do for the xml file. I know I could redirect to the asp page, but I don't want to do that.

[code]...

Posted: Oct 07, 2009 07:21 PM

View 3 Replies!   View Related
Web Forms :: Can Access GridView In Customer.aspx File From Another NewUserLogin.aspx File
How can I access my GridView in Customer.aspx file from another NewUserLogin.aspx file.

How should I chnge the access to my GridView to public so that I can chnge its values from another aspx file

Posted: Jun 23, 2010 02:33 PM

View 5 Replies!   View Related
Web Forms :: Embed .asmx File Into Webform?
can anyone help show me How to embed .asmx file into webformVideo or tutorial

Posted: Nov 16, 2009 12:33 PM

View 3 Replies!   View Related
Using A .cs File From A VB Aspx Page?
Is it possible to use a .cs file from within a ASPX file that has been coded in VB ?Basically I have found a utility to add reviews to my website and to intergrate it they supply a .cs file which is coded in c# (i believe). Now all my aspx files are VB, is there any way I can still use the .cs file ?The examples they give are -

[Code]....

Posted: Dec 05, 2010 07:19 PM

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved