How To Embed Excel File With Macro In Aspx Page

Nov 29, 2010 09:25 AM

I want to embed a excel file with macro in web page, and execute the macro when I click a button in the 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>

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?


Embed An Html (or Aspx) File Within News.aspx Page?

Feb 28, 2009 06:30 AM

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.

View 7 Replies View Related

Can Import And Execute A Macro Into An Excel File?

Oct 27, 2010 05:41 PM

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

View 1 Replies View Related

Embed Html File In Aspx Page

Jun 11, 2009 12:17 PM

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.

View 3 Replies View Related

Web Forms :: How To Embed A Child Page (aspx) In A Master Page (aspx)

Apr 14, 2010 07:39 AM

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:


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


View 1 Replies View Related

Web Forms :: Put <embed> Tag Within The <object> Tag In A .aspx File?

Jul 01, 2008 05:51 PM

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.

View 10 Replies View Related

Web Forms :: Embed Silverlight App In Aspx File?

Feb 14, 2010 06:38 AM

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" />

View 2 Replies View Related

Web Forms :: How To Embed Silverlight Xap Into Aspx Page

Feb 21, 2010 05:00 AM

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.

View 6 Replies View Related

Embed A Word Document Into Aspx Page Using C#?

Apr 1 at 10:25

How to embed a word document into a aspx page which should be runnable in the web page itself while running the aspx page.

View 2 Replies View Related

Javascript - How To Embed A Static HTML Page In Aspx Page

Mar 7 at 2:27

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 provide a specific control for this or can I use a frame?

View 3 Replies View Related

Web Forms :: Trying To Embed A Flash SWF File Into Page?

Feb 03, 2011 10:27 AM

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.

View 3 Replies View Related

Web Forms :: How To Embed Flash File In Page Having Features Like Video Displayed In Youtube

Feb 12, 2011 01:10 PM

i want to embed flash file in page.I have used below code for same:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="

View 1 Replies View Related

C# - Opening Excel File From Server Aspx?

Oct 30 10 at 12:36

I have the following X.aspx download excel file from Server


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 ..

View 1 Replies View Related

Error Trying To Open Excel In Aspx File?

Jan 24, 2009 01:25 AM

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.

View 4 Replies View Related

Web Forms :: Excel Sheet Embed In A Webpage?

Nov 30, 2010 07:13 PM

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


View 4 Replies View Related

Web Forms :: How To Export Aspx Page To Excel

Aug 26, 2009 08:44 AM

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?

View 5 Replies View Related

Importing To Aspx Page From User's Excel Spreadsheet?

Mar 21, 2011 01:46 PM

I have a requirement that the user will need to import a list of ID's to the 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.

View 4 Replies View Related

Visual Studio :: Adding A Server Control On Aspx Page Does Not Add Events In Aspx.designer.vb File?

Oct 05, 2010 12:14 PM

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.

View 2 Replies View Related

Web Forms :: Embed HTML In ASPX But Not IFRAME?

Apr 23, 2010 09:26 PM

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 will read the HTML content and put it in aspx in run time.

View 5 Replies View Related

Easy Way To Display An Existing Excel Sheet In A .aspx Page

Aug 13, 2009 02:07 PM

I would like an easy way to display an existing excel sheet in a .aspx. page.

View 3 Replies View Related

Exporting Aspx Report To Excel Page Without Using Any Asp Component Like Datagrid?

Feb 04, 2011 12:40 PM

I need the code for exporting aspx report page(static content without any html component but contains css style) to excel page without using any component like datagrid or any other.Please send me the complete code.

View 5 Replies View Related

Web Forms :: How To Change Worksheet Direction When Export From Aspx Page To Excel

Aug 11, 2010 06:49 AM

I am exporting dataTable from aspx page to excel use the regular way-

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

i need the worksheet direction to be right to left,

View 5 Replies View Related

Web Forms :: Embed And Pass Values Dynamically In Aspx Pages?

Feb 08, 2011 04:59 AM

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");

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

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

Mar 12, 2010 04:23 PM

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).

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?

View 2 Replies View Related

Web Forms :: To Get Filename And File Path Using HTML File Control In Aspx Page?

Jan 06, 2011 03:27 AM

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.

View 4 Replies View Related

Web Forms :: File Download Fails And Report Aspx Page As The File?

Oct 29, 2009 07:22 AM


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.

View 5 Replies View Related

Can Embed The File In HTML

Jan 27 at 11:31

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?

View 2 Replies View Related

Embed Wmv File Into Webpage?

May 23, 2009 04:46 PM

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.

"-//W3C//DTD XHTML 1.0 Transitional//EN"


View 5 Replies View Related

Difference Between The Source Code For The .aspx Page And The Code In The .aspx.vb File?

Apr 08, 2009 02:25 PM

What is the difference between the Source code for the .aspx page and the code in the .aspx.vb file?

View 2 Replies View Related

Web Forms :: Embed A Mp3 Audio File?

Aug 25, 2009 10:48 AM

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>";

View 11 Replies View Related

Flash - Embed Swf. File Programmatically?

Jun 23 10 at 13:50

I have swf files and i read this files from database. My q. is how can I embed this files in

View 1 Replies View Related

AJAX :: Embed JS File As Web Source In 3.5?

Apr 19, 2010 10:20 AM

I am tring to create custom server control using I update the AssemblyInfo.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.

View 8 Replies View Related

Databases :: Page Times Out Reading Excel File?

Mar 31, 2010 04:17 PM

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.


View 2 Replies View Related

Databases :: Reading Hyperlinked Page In Excel File Using C#?

Nov 19, 2010 04:33 PM

I understand how to use a connection string object to read excel sheets. What I don't know is how to follow a hyperlink inside excel, grab matching 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.

View 4 Replies View Related

Code To Fill And Download Excel File From Page?

Jun 30, 2005 06:23 PM

i have a project that need me to make a web form in ,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.

View 1 Replies View Related

Web Forms :: Display An Aspx File With A Dynamic Menu By Calling It From Another Aspx File?

Jan 19, 2007 02:34 PM

I am trying to display an aspx file with a dynamic menu by calling it from another aspx file. When executed everything works, except the dynamic menu does not appear. (The menu works when viewing filewithmenu.aspx) What could I be doing wrong?


View 5 Replies View Related

Web Forms :: How To Read The Contents Of An Aspx File And Write Its Content In Another Aspx File

Oct 07, 2009 07:21 PM

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.


View 3 Replies View Related

Web Forms :: Can Access GridView In Customer.aspx File From Another NewUserLogin.aspx File

Jun 23, 2010 02:33 PM

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

View 5 Replies View Related

Web Forms :: Embed .asmx File Into Webform?

Nov 16, 2009 12:33 PM

can anyone help show me How to embed .asmx file into webformVideo or tutorial

View 3 Replies View Related

Using A .cs File From A VB Aspx Page?

Dec 05, 2010 07:19 PM

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 -


View 1 Replies View Related

Copyrights 2005-14, All rights reserved