15,917,321 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by bhavesh002 (Top 39 by date)
bhavesh002
20-Nov-13 5:35am
View
this work when i was trying in sample application on my local pc but when i was put the same on server app it not give any popup and also not save file and one more thing it not give any error msg or exception code debug successfully
bhavesh002
20-Nov-13 5:32am
View
byte[] bytes = System.IO.File.ReadAllBytes("C:\\csharp_Excel.xls");
Response.AddHeader("Cache-Control", "no-cache, must-revalidate, post-check=0, pre-check=0");
Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("Content-Description", "File Download");
Response.AddHeader("Content-Type", "application/force-download");
Response.AddHeader("Content-Transfer-Encoding", "binary\n");
Response.AddHeader("content-disposition", "attachment;filename=" + "C:\\csharp_Excel.xls");
Response.BinaryWrite(bytes);
HttpContext.Current.ApplicationInstance.CompleteRequest();
bhavesh002
20-Nov-13 5:24am
View
i was tried your sample code i was retrieves the file data from my file but this work on my app but when same code i run on server it was not work.
bhavesh002
20-Nov-13 5:21am
View
Yes
bhavesh002
28-Oct-13 4:19am
View
i was looked your suggested link but it is payed any other library which is free
bhavesh002
28-Oct-13 4:17am
View
i need help for convert pdf to image file
bhavesh002
3-Aug-13 5:32am
View
thanks,
not exactly Because i am working with WPF application but it's help me to solve my problem,
i solve my problem using below code
string currentDirectory = AppDomain.CurrentDomain.BaseDirectory;
string filename = string.Empty;
string[] array = currentDirectory.Split('\\');
for (int i = 0; i < array.Length - 3; i++)
{
filename = filename + array[i] + "\\";
}
filename=filename +"Images\\logo.png";
bhavesh002
2-Aug-13 9:41am
View
ok thanks
bhavesh002
2-Aug-13 9:26am
View
String sPath = "Drive:\\Folder1\\NameOfTheFile.jpg";
this parameter i want dynamic path because if i pass this path and when i change project location it is not work or i need to change manually
bhavesh002
2-Aug-13 9:23am
View
in above methos i pass first parameter
"D:\\My Projects\\kkk\\BackstopWebserviceTest\\Images\\logo.png";
but i want to pass it dynamic like @".\\Images\\logo.png" somthing like this but it not work so any other syntax or way to pass this first parameter
bhavesh002
25-Jun-13 5:13am
View
@Aaavatar i not want to convert online i want to code solution for do this task programmatic..
bhavesh002
7-Jun-13 3:52am
View
hi...i solved this problem thank you
bhavesh002
4-Jun-13 7:15am
View
// Open the source workbook. excelWorkBook = excelApplication.Workbooks.Open(paramSourceBookPath, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing, paramMissing); // get all sheets in workbook Microsoft.Office.Interop.Excel.Sheets excelSheets = excelWorkBook.Worksheets; // get some sheet string currentSheet = "Data"; Microsoft.Office.Interop.Excel.Worksheet excelWorksheet =(Microsoft.Office.Interop.Excel.Worksheet)excelSheets.get_Item(currentSheet);
yes i done using above code
thanx.
bhavesh002
4-Jun-13 7:14am
View
// Open the source workbook.
excelWorkBook = excelApplication.Workbooks.Open(paramSourceBookPath,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing);
// get all sheets in workbook
Microsoft.Office.Interop.Excel.Sheets excelSheets = excelWorkBook.Worksheets;
// get some sheet
string currentSheet = "Data";
Microsoft.Office.Interop.Excel.Worksheet excelWorksheet =(Microsoft.Office.Interop.Excel.Worksheet)excelSheets.get_Item(currentSheet);
yes i done using above code
thanx.
bhavesh002
4-Jun-13 5:46am
View
ok i try
bhavesh002
4-Jun-13 5:07am
View
main link for this:
http://msdn.microsoft.com/en-us/library/bb407651%28v=office.12%29.aspx
[
^
]
bhavesh002
4-Jun-13 4:46am
View
suppose i have a one excel file with name xyz.xls ans in that excel file 3(three) worksheet A,B and C and i want to create pdf of only B worksheet how i pass parameter "paramSourceBookPath"
excelWorkBook = excelApplication.Workbooks.Open(paramSourceBookPath,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing, paramMissing, paramMissing,
paramMissing, paramMissing);
currenty i pass @"C:\xyz.xls" but it crtae all tree A, B,c as a combine in one Pdf But i dont want A and C i need Only B worksheet as a pdf.
bhavesh002
4-Jun-13 4:15am
View
i try below link and convert excel to pdf successfully
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.exportasfixedformat.aspx
but now my problem is that in my excel sheet 3 worksheet sheet1,sheet2 and sheet3 this code convert all sheet in a one pdf if i want to sheet1,sheet2 and sheet3 as a individual how i pass path of particular excel sheet with worksheet??
any idea about this??
if you have any idea or any useful artical link please share with me.
thanks.
bhavesh002
4-Jun-13 4:07am
View
c#.net
bhavesh002
4-Jun-13 2:20am
View
asp.net version 4.0
bhavesh002
3-Jun-13 9:20am
View
i use .net programing language
bhavesh002
3-Jun-13 7:36am
View
i want this task using coding
bhavesh002
3-Jun-13 6:13am
View
i already look those articles but still i am not clear ..
bhavesh002
30-May-13 3:21am
View
ok,thanx i follow your answer and i solve my problem
Thnx
bhavesh002
15-May-13 3:08am
View
hm if version on local machine and server is same it run that application and if version of server and local machine is different it download latest version from server and then it run application so our manual process is reduce
bhavesh002
29-Mar-13 8:52am
View
SqlException: CREATE DATABASE permission denied in database 'master'.
yes but i give all permission any other extra permission for create share point database or any other setting for create database
bhavesh002
19-Mar-13 7:25am
View
string szConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\MySamplefile.xls;Extended Properties='Excel 8.0;HDR=No'";
OleDbConnection conn = new OleDbConnection(szConn);
conn.Open();
OleDbCommand cmd = new OleDbCommand();
cmd = new OleDbCommand("INSERT INTO [sheet2$](columnName1,columnName2) VALUES ('A3','B3')", conn);
cmd.ExecuteNonQuery();
conn.Close();
in this Example inplace of columnName1 and columnName2 i want to pass any Cell no like A1,B1 and any other cell
bhavesh002
13-Feb-13 1:36am
View
no line is not a part of image
bhavesh002
13-Feb-13 1:30am
View
Deleted
no line is not a part of image
bhavesh002
8-Feb-13 2:06am
View
No Its Not Give Any Error Code Only Hanged Out And Display "Not Responding"
bhavesh002
1-Feb-13 2:51am
View
Thanks For Giving Useful Solution i try to apply this solution and apply successfully and get footer but i wan to a page number in place of word "ThankYou" i need to Paging Like "Page 1 of 1" same as in word document footerpager control so any modification at that place to get paging like this ???
bhavesh002
6-Dec-12 7:35am
View
its open full window how can i give size of open new window
bhavesh002
5-Dec-12 1:53am
View
use ToShortDateString() method for get only date
bhavesh002
28-Nov-12 2:08am
View
Entity Framework
bhavesh002
20-Nov-12 8:26am
View
i saw that link but when i run
import sys
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7.1\Lib')
import os
os.environ['HTTP_PROXY'] = "127.0.0.1:8888"
import urllib2
response = urllib2.urlopen("http://www.google.com")
code i gate error which is given in below
urllib2.URLError:(urlopen error getadderinfo returns an empty list)
so which value i set at ['HTTP_proxy']=?????
bhavesh002
30-Oct-12 13:37pm
View
tihs give Result in Uppercaase but i need Titele case "My Name Is John" but To Uppercase Give Result "MY NAME IS JOHN"
bhavesh002
28-Feb-12 7:04am
View
thanks
but,
time out is in which unit???
minites or Second????
bhavesh002
6-Feb-12 9:48am
View
ok
bhavesh002
6-Feb-12 5:03am
View
Deleted
your given code in vb but i need to asp.net code
Show More