Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2006, 11:49 AM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel Hyperlinks in ASP

I'm trying to create an excel from asp, and I do it using OWC but I dont find any documentation, about making Hyperlinks, Can You Help me?.
I use the following code to create Excel.
Dim oExcel
Set oExcel = Server.CreateObject("OWC.Spreadsheet")
Set c=oExcel.Constants
oExcel.Cells(1,1).font.bold = True
oExcel.Cells(1,1).font.size = 18
oExcel.Cells(1,1).Value = "Informe Comparación de Publicaciones"
oExcel.ActiveSheet.Export (Server.MapPath("excel\Informe" & NUMERO &".xls"))


 
Old July 27th, 2006, 06:23 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You are trying to place hyperlinks inside the Excel book or write hyperlinks out to the page?

"The one language all programmers understand is profanity."
 
Old July 30th, 2006, 12:28 PM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I need to write in a Excel Cells a Hyperlink to one WebPage, I'm trying using the Hyperlinks.add method but I dont known how to use it

 
Old December 26th, 2006, 12:44 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try Following:

Range range = ((Worksheet) this.ActiveSheet).get_Range("A1", missing);
Hyperlink hyperlink = (Hyperlink) range.Hyperlinks.Add(range, "http://www.google.com", missing, missing, "google");






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP to Excel BUT show Excel grid lines mat41 Classic ASP Basics 8 May 31st, 2009 05:56 PM
Modify Hyperlinks in Excel 2003 nemesis538 Excel VBA 2 August 3rd, 2007 03:02 AM
ASP to Excel - excel output formatting issue mat41 Classic ASP Professional 0 August 13th, 2006 06:41 AM
ASP Form to Database to HTML Hyperlinks remnatch Access ASP 1 August 9th, 2004 10:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.