Wednesday, April 6, 2011

Chart Control in


Here i am posting a very good example of Chart Control in ASP.Net.

Monday, June 21, 2010

How to open and Edit MSoffice document from C#.Net

Lots of people asking me how to open and edit MSoffice document from C#.Net.
Here i am giving you the way.

May you know all these and if have any better solution then comment me.

1. For just launching word. ( No need to specify the path of word exe)

2. For launching word with specifying file name.
Process.Start("Winword.exe", "My.doc");

If you want to create, edit any document file from C# Then follow these steps.

1.  From Add reference add a COM reference.
2.  Select "Microsoft Word 11.0 Object Library" Type lib version 8.3.
     ( It will vary upon library installed on your system)
     If you want to open and Edit Access, Excel files then add their respective libraries.
3. Now use the classes given by API for operating with files.

Here is a sample for word file..

using Microsoft.Office.Interop.Word;
ApplicationClass WordApp = new ApplicationClass();
   object _fileName = "My.Doc";
   object _readOnly = false;
   object _isVisible = true;
   object missing = System.Reflection.Missing.Value;
   WordApp.Visible = true;

   //the number of parameter on open method will vary according to referenced object library version
   Document aDoc = WordApp.Documents.Open(ref _fileName, ref missing, ref _readOnly, ref missing, ref missing, ref missing, ref missing, ref                                   missing, ref missing, ref missing, ref missing, ref _isVisible, ref missing, ref missing, ref missing, ref missing);

Wednesday, June 9, 2010

Free Online Exam / Certification

Hello Friends,
After a long time i am again here with some new topic.
Today i am giving you some Free Online Exam link which are very helpful for certification and you knowledge.

Even i am also doing the same way to update myself.

If you have anymore link just comment me i will post over here.

1. RankSheet:-  for .Net, java, Sql and all
2. TestWorld:- for Microsoft, Cisco, Sun and all
3. JavaBlackBelt:- for java and some editors

Wednesday, March 31, 2010

.Net Obfuscator for securing your source code

Hi Everyone,

The first priority and biggest challenge for any software developer is, How to secure application from re-engineering?

We know that the languages which are Interpreted can easily be re-engineered via Decompiler.
Even .Jar, .Class, .dll and .exe files can easily be decompiled which are created by Java and .Net.

What is Obfuscation?
Is the process of encrypting your .Net code so that it cannot be easily re-engineered.
It is language neutral technology even you can obfuscate java code too.
It is mainly used in managed languages because they can be re-engineered.

Then how to protect???

You can use Obfuscator for that. It just mangle your method, properties, classes and variables.
It means it change the name suppose your class name is Test, after obfuscator it may become ?dsghd.

So it cannot be easily understandable after decompilation.

Here i am putting some tools for protecting you code.

Wednesday, February 17, 2010

Convert Jar to Exe and Secure Java Application

Hello Friends,

Hope you will see my previous post regarding the same.

first of all Thanks for mailing me and your doubts.
Many people ask me question which one is best,secure and easy among them.

Actually many of them are developed on java itself.
So some time they just change the name of jar file to exe and it looks that we made it,
But originally you can extract it by changing its name again.

Best is use some commercial tool or Use tool which actually convert it into Win32 exe's.
I tried Excelsior that is commercial (think made in java) and jstart32 (Made in delphi) with
GNU license are tool which originally created a Win32.exe.

go and try...

Hope now you will feal secure.
Ask if any query or comment if you like.