|
Thank you verry mutch for your answer but it doesn't work, in a computer it's the same parameter's of office and it work but in my pc it don't work, i try to install microsoft office 2003 and it the same, please help me to resolve this problem, thank you verry mutch.
|
|
|
|
|
But what is the error message you are getting ?
Try this one.
1. Click Start, click Run, and then type DCOMCNFG. Select the application that we want to automate. The application names are listed below:
2. Microsoft Excel 97/2000/2002/2003 - Microsoft Excel Application
3. Click Properties to open the property dialog box for this application.
4. Click the Security tab. Verify that Use Default Access Permissions and Use Default Launch Permissions are selected.
5. Click the Identity tab. Verify that The Launching User is selected.
6. Click OK to close the property dialog box and return to the main applications list dialog box.
7. In the DCOM Configuration dialog box, click the Default Security tab.
8. Click Edit Defaults for access permissions. Verify that the following users are listed in the access permissions, or add the users if they are not listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
OfficeAutomationUser
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts exist only if Internet Information Server (IIS) is installed on the computer.
9.Make sure that each user is allowed access and click OK.
Click Edit Defaults for launch permissions. Verify that the following users are listed in the launch permissions, or add the users if they are not listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
OfficeAutomationUser
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts exist only if IIS is installed on the computer.
|
|
|
|
|
When i excute DCOMCNFG, a table appear, there are a root : consol and thre fields : services composant, services and log file, but i don't find microsoft excel 2003 or 2007, thank you verry mutch.
|
|
|
|
|
in "DCOMCNFG"
Go to
Component Service
Computers
My Computer
DCOM Config
now select from right hand side list
|
|
|
|
|
I am sorry bu I don't find goto, Thank you verry mutch
|
|
|
|
|
come on man.
Go to means "Select"
When you open "dcomcnfg"
On the Left hand side panel under the "Console Root" Select those options in the tree view (click +)
And after you select the last node find the excel application on the right hand side panel.
|
|
|
|
|
Hi,
I am trying to send email through C# using my Gmail account.When i am running this application from direct internect connection system its working fine. when i am using a proxy system its showing 'Failure sending mail'.
i am using the code
SmtpClient SmtpServer = new SmtpClient();
SmtpServer.Credentials = new System.Net.NetworkCredential ("username","password");
SmtpServer.Port = 587;
SmtpServer.Host = "smtp.gmail.com";
SmtpServer.EnableSsl = true;
mail = new MailMessage();
mail.From = "";
mail.Subject = "";
SmtpServer.Send(mail);
Thanks in advance
AnupMadathil
|
|
|
|
|
I don't believe that the .NET email classes have ways to set a proxy server.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I want to access the data of a PDF file which is opened on IE using BHO.
Using a Browser Helper Object, how can I come to know that a PDF file is opened on IE.
The BHO in the following link is helpful for retrieving data of web pages.
http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx?fid=447248&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=2421069
But how the PDF file data can be retrieved?
|
|
|
|
|
Hi everyone, i need your help
This is my sym.cs file where it store the encryption part
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Security.Cryptography;
namespace SecurePDFViewer
{
public class SymCrypto
{
private SymmetricAlgorithm symAlgorithm;
private static byte[] saltValue = new byte[] {213,230,110,217,191,69,82,238};
private static byte[] IV = new byte[] { 207, 177, 154, 229, 191, 104, 44, 244, 86, 12, 63, 54, 94, 9, 88, 148 };
private static int keySize = 256;
private static int pwIteration = 7;
public SymCrypto()
{
//Creates the default implementation, which is RijndaelManaged 256 bits
symAlgorithm = SymmetricAlgorithm.Create();
symAlgorithm.IV = IV;
}
public SymCrypto(string algorithmName)
{
symAlgorithm = SymmetricAlgorithm.Create(algorithmName);
symAlgorithm.KeySize = keySize;
symAlgorithm.IV = IV;
}
public byte[] EncryptData(string passphrase, byte[] plainBytes)
{
GenerateKey(passphrase);
// Define memory stream which will be used to hold encrypted data
MemoryStream memoryStream = new MemoryStream();
// Define cryptographic stream (Write mode for encryption)
CryptoStream cryptoStream = new CryptoStream(memoryStream,
symAlgorithm.CreateEncryptor(),
CryptoStreamMode.Write);
cryptoStream.Write(plainBytes, 0, plainBytes.Length);
cryptoStream.FlushFinalBlock();
byte[] cipherBytes = memoryStream.ToArray();
// Close streams
memoryStream.Close();
cryptoStream.Close();
return cipherBytes;
}
public string EncryptData(string passphrase, string plainText)
{
byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText);
return Convert.ToBase64String(EncryptData(passphrase, plainTextBytes));
}
public byte[] DecryptData(string passphrase, byte[] cipherBytes)
{
GenerateKey(passphrase);
// Define memory stream which will be used to hold encrypted data
MemoryStream memoryStream = new MemoryStream(cipherBytes);
// Define cryptographic stream (Read mode for decryption)
CryptoStream cryptoStream = new CryptoStream(memoryStream,
symAlgorithm.CreateDecryptor(),
CryptoStreamMode.Read);
byte[] plainBytes = new byte[cipherBytes.Length];
int count = cryptoStream.Read(plainBytes, 0, plainBytes.Length);
// Close streams
memoryStream.Close();
cryptoStream.Close();
byte[] actualBytes = new byte[count];
for (int i = 0; i < count; i++)
{
actualBytes[i] = plainBytes[i];
}
return actualBytes;
}
public string DecryptData(string passphrase, string cipherText)
{
byte[] cipherTextBytes = Convert.FromBase64String(cipherText);
return Encoding.UTF8.GetString(DecryptData(passphrase, cipherTextBytes), 0, 1000);
}
private void GenerateKey(string passphrase)
{
Rfc2898DeriveBytes pwdGen = new Rfc2898DeriveBytes(passphrase, saltValue, pwIteration);
symAlgorithm.Key = pwdGen.GetBytes(keySize/8);
}
}
}
------------------------------------------------------------------------------------------------------
Main.cs
using System.IO;
using System.Security.Cryptography;
private void button1_Click(object sender, EventArgs e)
{
SymCrypto sym = new SymCrypto();
string cipherText = sym.EncryptData("I love Java", "2.1 SCOPE OF TESTS\nThe test plan for User Authentication System webservice will consist \nof the following tests related to interoperability: a) WS-I Basic Profile 1.1 Interoperability Tests Interoperability testing will be performed in conformance to WS-I Basic Profile 1.1 specifications. The profile addresses the following areas: \n• Messaging Messaging includes XML Representation of SOAP Messages, SOAP Processing Model and use of SOAP in HTTP. Four specifications are referenced in this section:• Simple Object Access Protocol (SOAP) 1.1• Extensible Markup Language (XML) 1.0 (Second Edition)• RFC26116 Hypertext Transport Protocol HTTP/ 1.1 • RFC2965: HTTP State Management Mechanism• Service DescriptionThis refers to Web Services Description Language (WSDL) to enable the description of services as sets of endpoints operating on messages. Three specifications and extensibility points are referenced in this section:• Web Services Description Language 1.1• XML Schema Part 1: Structures•"); <---- HARD CODE
string abc = ("how are you"); <-- HARD CODE
MessageBox.Show(cipherText + abc);
string plainText = sym.DecryptData("I love Java", cipherText);
MessageBox.Show(plainText + abc);
}
------------------------------------------------------------------------------------------------------
I will be using a IE toolbar button to mark it...
But how can change it so that i can read the encrypted html?
Thank you
|
|
|
|
|
We didn't need to see all this code. So, you're saying you can decrypt it, but you want to display it in IE via a toolbar ? So, you want to intercept an HTTP request and decode it, right ?
Does it have to be in a toolbar, could it be in an app that contains an IE control and then does the HTTP request ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
No,
Cause this encrypt is hardcode
How can i do like this: Use getElementsByName()
if my
var x=document.getElementsByName("encrypt");
How can i capture those encrypt in the html and ancrypt it?
text"
text
|
|
|
|
|
No,
Cause that encrypt words is hardcoded
How can i do like this: Use getElementsByName()
if my
var x=document.getElementsByName("encrypt");
How can i capture those encrypt in the html and ancrypt it?
text"
text
|
|
|
|
|
|
Kanchan Pawar wrote: urgent...........
No its not.
You obviously do NOT know what you are talking about, the microsoft .net framework is not something you can import anything into, its a code for running applications.
I suugest you get some books about .net and read them before going any further.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I suggest you need a new keyboard first. Your period (".") key is malfunctioning.
|
|
|
|
|
Kanchan Pawar wrote: urgent...........
I assume you were expecting Intellisense to tell you what appeared after the first period. Continuing to press the key after the first one failed to do what you want is just an exercise in futility.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
?You are a moron. A grade A moron. And around here, that's saying something.
Buy a book and read it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
it is very urgent.................
|
|
|
|
|
Kanchan Pawar wrote: it is very urgent.................
No, its not, otherwise you would go out and buy some. If you want code written for you try rentacoder.com - I also suggest you learn to specify what you mean better.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Turn off the computer and walk away. You are just too stupid to use one. Sorry.
"can u please send me that autodiagramer software"
What auto diagrammer software ? This is not a place for pirates, it's a place for people who write code. You mean you want the source code for a project you need to write ? You must be joking
"it is very urgent................."
No, it's not. We help people out of the goodness of our hearts, but we don't actually give a damn if you meet your deadline or not. It's not urgent to us, at all.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear All,
I am using ListView control for display the record in listview from database i need to display id, name, etc very thing from database.
Please tell guide me.
Thanks.
|
|
|
|
|
I recommend you learn to use google, and buy/read a book on how to use C#. It's obvious to me that you're yet another outsourced worker, who has taken a job they know absolutely nothing about ,and are hoping we'll do your work for you. We try to help people who show some sign of making an effort.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello friends I want to fill a combo with only year value like when we fill our birth year in many sites. How can I do this.. ??
Any help would be appreciated..
Johnny
|
|
|
|
|
Which bit is confusing you ? Do you know how to add values to a combo box ? You can use DateTime.Now to get the current year and work from there, if you need to.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|