473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

excel output from c#

Hello,
In my windows app. I send the result of sp to excel sheet. It has siz column.
My problem is, I want to make the text in a column to hyperlink. How ca nI
do this when I am sending the info to excel.

thanks,
Nov 16 '05 #1
4 1981
Banu_tr,

I assume that you are already accessing Excel through automation. What
you have to do is go to each cell that you want to create a hyperlink in
(getting the Range for it), and then calling the Add method on the
Hyperlinks property exposed for that range. This will allow you to specify
the address to go to, etc, etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Banu_tr" <ab****@hotmail.com> wrote in message
news:04**********************************@microsof t.com...
Hello,
In my windows app. I send the result of sp to excel sheet. It has siz
column.
My problem is, I want to make the text in a column to hyperlink. How ca nI
do this when I am sending the info to excel.

thanks,

Nov 16 '05 #2
Hi,

I don't want to add the hyperlink when I alrealdy create the excel file.
In my program I run the sp, and return the results to excel file. But when
I am sending to excel I want to format the rows of one coloumn as hyperlink.
Thanks,
Banu --
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Banu_tr" <ab****@hotmail.com> wrote in message los
news:04**********************************@microsof t.com...
Hello,
In my windows app. I send the result of sp to excel sheet. It has siz
column.
My problem is, I want to make the text in a column to hyperlink. How ca nI
do this when I am sending the info to excel.

thanks,


Nov 16 '05 #3
Hi,

I am using my C# programs to create Excel files by writing in a file
tab separated values. But as you can imagine I can only write text. I
am interested in doing a lot more with excel (Writing formated text,
reading excel files). Can you help me? What is this automation?
John Arthur
Nov 16 '05 #4
I think you should define some extra data in the SQL recordset that is
returned, either as extra columns or as codes within the data, that your
program intercepts and thus knows what hyperlinks to create. It then uses
Excel automation methods to insert the appropriate hyperlinks using the
method the first replyer suggested.
"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8*************************@posting.google.co m...
Hi,

I am using my C# programs to create Excel files by writing in a file
tab separated values. But as you can imagine I can only write text. I
am interested in doing a lot more with excel (Writing formated text,
reading excel files). Can you help me? What is this automation?
John Arthur

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Spacy | last post by:
Am creating a HTML Report in asp.net. To save this report to excel on client-side, i write this code: Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition",...
22
by: Howard Kaikow | last post by:
There's a significant problem in automating Excel from VB .NET. Reminds me of a problem I encountered almost 3 years ago that was caused by the Norton Auntie Virus Office plug-in. Can anybody...
8
by: Sam | last post by:
Hi All, I posted this message few days ago. No one has answered so far. I just would like to know if it is possible to do or not. Even if you can not tell me how to do this, maybe you know which...
1
by: Anonieko | last post by:
Here are some of the approaches. 1. Transform DataGrid http://www.dotnetjohn.com/articles.aspx?articleid=36 3. Use the Export approach ...
3
by: RJN | last post by:
Hi I've a template excel file which has all the calculations defined. There are certain input values to be entered which gives a lot of output to the user. I don't want to expose the excel sheet...
6
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side...
4
by: michael.pearmain | last post by:
Hi Experts, Looking for a very quick bit on of advice on how to make some python code run. I'm a newbie to both VBA and Python, so i apologise if this is very easy but i'm about to tear my hair...
5
by: Rajesh | last post by:
Hi, Please help me to do an EXCEL report generation using ASP.NET. I am building an website. This should work in all machine. I need do load the data from SQL tables to excel sheet and user can...
18
by: Paul Lautman | last post by:
JRough wrote: What do you mean by "redirect the output to Excel"??? Excel isn't a location, it's a spreadsheet program that some (but not all users) will have on their machine. BTW, Location:...
0
by: sivadhanekula | last post by:
Hi all, I have to do a project in excel by usung vb. The coding part is done and I am getting the output in .CSV format. when doing project in the main excel sheet I will be having 3 sheets and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.