|
Hi every body
I wrote code in asp.net to write in excel.
when i run it in debug mode it writes and opens this excelsheet.
But when I Browse by my IE then it does not open and also does not give error message
What is PROBLEM??????????????????
CAN ANYBODY TELL ME PLEASE ?
rAGHVENDRA
Raghvendra Kumar Roy
|
|
|
|
|
I have designed a Editor with basic format options and Spell check option.
The spell check code is as follows
Word.Application app = new Word.Application();
app.Visible=false;
object template = Missing.Value;
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = true;
object optional = Missing.Value;
Word._Document doc = app.Documents.Add(ref template, ref newTemplate, ref documentType, ref visible);
doc.Words.First.InsertBefore (hdnVal.Value );
Word.ProofreadingErrors we = doc.SpellingErrors;
iErrorCount = we.Count; doc.CheckSpelling( ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);
object first = 0;
object last = doc.Characters.Count -1;
string strTemp = doc.Range(ref first, ref last).Text;
doc.Close(ref saveChanges, ref originalFormat, ref routeDocument);
app.Quit(ref saveChanges, ref originalFormat, ref routeDocument);
The problem is that, when i execute it in my system, its working fine.
But when i access the same URL from another machine, the spell check dialog is not opening but , its opening in the parent system.
What could be the problem? Kindly help me
Thanks
~VSree
|
|
|
|
|
I have a page which has lot of asp.net controls and retrieves data from the database and fill the controls.
and if the user makes changes and moves to the next page without saving. I want to alert them.
Can any one gimme idea on how to track the changes in the page !! or which keyword to search in google for !!
P.S: I checked for Viewstate property but it remains the same onload and posts.
Sathy
|
|
|
|
|
I guess this [^]will help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi All,
In crystal report i want to display a field which is a string that should be in the following condition.
If that field has string value then it should display as it is else
if its a number then it should convert the string type to numeric type.
i used the following code
If NumericText ({st_delivery_note.stst_item_code}) Then
ToNumber ({st_delivery_note.stst_item_code})
else {st_delivery_note.stst_item_code}
but error occurs in the last line which says " A number required here"
Can anyone help me out.
|
|
|
|
|
|
Visual Studio can be used to edit XML files. BTW, what this has o do with ASP.NET ?
|
|
|
|
|
thanks so much..
and i know vs .net can edit XML files..
but our clients suggest us to to it.
so we must find some way that use xml_notepad_2007 to read edit and check XML files in .net 2.0.
can somebody help me ?
Study...
|
|
|
|
|
Hi i need to convert .php file to .aspx.
I have this script.php file in my application. I need to change this .php to .aspx on page load.
$result = array();
if (isset($_FILES['photoupload']) )
{
$file = $_FILES['photoupload']['tmp_name'];
$error = false;
$size = false;
if (!is_uploaded_file($file) || ($_FILES['photoupload']['size'] > 2 * 1024 * 1024) )
{
$error = 'Please upload only files smaller than 2Mb!';
}
if (!$error && !($size = @getimagesize($file) ) )
{
$error = 'Please upload only images, no other files are supported.';
}
if (!$error && !in_array($size[2], array(1, 2, 3, 7, 8) ) )
{
$error = 'Please upload only images of type JPEG.';
}
if (!$error && ($size[0] < 25) || ($size[1] < 25))
{
$error = 'Please upload an image bigger than 25px.';
}
$addr = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$log = fopen('script.log', 'a');
fputs($log, ($error ? 'FAILED' : 'SUCCESS') . ' - ' . preg_replace('/^[^.]+/', '***', $addr) . ": {$_FILES['photoupload']['name']} - {$_FILES['photoupload']['size']} byte\n" );
fclose($log);
if ($error)
{
$result['result'] = 'failed';
$result['error'] = $error;
}
else
{
$result['result'] = 'success';
$result['size'] = "Uploaded an image ({$size['mime']}) with {$size[0]}px/{$size[1]}px.";
}
}
else
{
$result['result'] = 'error';
$result['error'] = 'Missing file or internal error!';
}
if (!headers_sent() )
{
header('Content-type: application/json');
}
echo json_encode($result);
I hope ur's reply.
Thanks
Every Successful Person Have A Painful Story
|
|
|
|
|
Hi i have a small doubt regarding dataset.
Is dataset is limit in its size. It takes only fixed rows?
if so, up to how many rows it would take?
if we give more than the limit. what exception it will give...
if any one have idea..please respond.
thanking you
G. Satish
|
|
|
|
|
Check this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi,
I am working on URL rewriting. Everything is working fine with VS 2005 web server. But when I configured in IIS it is not working.
The urls look like the following:
http://localhost/Prodcuts/Categories/View.Shirts
http://localhost/Prodcuts/Categories/AddNew.Category
So extension will change according to the functionality. I could not figure it out how to configure IIS 5.1 to work with these extension. Please help me. Thank you.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Hi
I need your help..i am in a problem like
In my webpage i have 2 textbox...initially both will have to show..user has to enter value any one of these 2 textbox and has some regular expression validation is also there..
eg..one textbox is for bank a/c and another is for someother bank a/c no each one has it's on regular expression validation ..user has to fill either one of these textboxes..for that i have to create a custom validation control..because i am a beginer in asp.net..so can anybody help me to make custom control for this problem....for that i can reuse it again in my project..
regards
alex.
|
|
|
|
|
Dear,
Your need is simple
put a custome valid ctrl in web page, under this control
{
if((TextBox1.Text=="")&&(TextBox2.Text==""))
//display error message
//set a flag variable
}
But the dear...These validations are pure when u publish the site in web
if u know, try with javascript
|
|
|
|
|
Hi,
I have few objects in my web service I need to parse them into System.Xml.XmlDocument automatically. So that the object should be displayed as xml document. And if parsing fails then it should throw an exception that the format is incorrect. So that I can say the user to resend the values.
Can anybody pls. suggest me to do XML parsing.
Thanks a lot,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I have to give the client to open the mail message window of outlook on clicking the button.It is opening on the server on button click event, but when he client try to open it on the button click , it is not opening.
Please help.
I am using the following code
system.diagnosis.process.start("mailto:");
I got some code
Application a = new Application();<br />
MailItem m = (MailItem)a.CreateItem(OlItemType.olMailItem);<br />
m.To = name;<br />
Object obj = new object();<br />
m.Display(obj);
I am getting the following error in the first line of code , which i provided , while ececuting on the IIS.
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Wednesday, June 18, 2008 2:31 AM
|
|
|
|
|
Hello
i have a question
in my compani each user have login in database
we are thinking go to the use one login
but i have the next ask
in case of audit how we can know what action are each user if we implement use one user for the login
someone can a commets, guide etc
regards
|
|
|
|
|
Obviously, you cannot, unless each user has a dedicated IP and you track that. But, you may as well track logins.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have GridView with EmployeeID, FirstName columns both are bound columns, and paging enabled. When the page is displayed, I see EmployeeID and FirstName in the GridView.
Now, I need to go to second page... while going to second page, I need to read first page's EmployeeIDs with Javascript and store it somewhere.
How can I do that?
Anyone...........Help!!!
CSharp Guy
|
|
|
|
|
Well, if you need the ids, put them in a hidden field, so you can get at them from javascript.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am having the toughest time trying to figure out how to make an ASP .NET Calendar's title a clickable link. I have come up empty handed trying to find an article. Is this a possible task?
|
|
|
|
|
I want to pass the value of a dropdownlist to a formviewlabel.
1. I use the dropdown to "choose" a record number then view that record in a gridview.
2. I use a formview NewButtonClick event to add a detail record.
3. I then want pass that record number on to the detail (from the dropdownlist to the formviewlabel) so I don't have to enter it manually.
I have read and tried a lot of different things that related to passing values between pages and nothing has worked. I haven't been able to find much on passing values between controls. Any help would be aprecated.
Thanks.......
modified on Wednesday, June 18, 2008 10:51 AM
|
|
|
|
|
Type question again in simple ..
|
|
|
|
|
I need to swap the default SQLserver providers out for the MsAccess providers. I have the providers installed, but the only tutorial I've been able to find is on creating a new project not switching over an existing one.
You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4....
-- El Corazon
|
|
|
|
|
I am developing a Webpage (.aspx) that contains a multi-tab ajax panel. Now, each of the tab panels contain several grids, textboxes, etc. As I am developing this page the code behind file aspx.cs is starting to get very large. At this point should I continue to add everything to this single page and code behind file or do something else?
Thanks,
Steve
|
|
|
|