|
You probably need to buy a library that is more universally supported instead of using what you're using.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Christian for ur prompt reply
Do you know any library.. which will b available in dotnet hence i can use that function directly.
Thanks
Santo
Santhosh
|
|
|
|
|
From Word ? I'm not sure, I think I've seen one, it was quite expensive, and I forget the name.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
If you install a pdf printer such as PDFcreator, you could simply open the word doc, then print it. Though you can print programatically in such a way as to avoid the print dialog boxes, you'll still be faced with PDFCreator's 'save as' dialog box. I don't know if it is practical to automate the 'save as' dialog interation in your situation; though, if you are just trying to convert a few hundred files or will always use this in a manual enviornment, this should solve your problem.
If you take this approach and can't/don't automate the 'save as' dialog interaction, I recommend putting the target file name and path in the clipboard so that you only 'ctrl-c' the file name and click save.
Hope this helps
|
|
|
|
|
Did u get any solution for your question if yes plz share with me also because i also have same requirement...........
thanks in advance
aashish
|
|
|
|
|
There is a dll file in a program I use that contains product information for the program to use. I was wondering is there any way I can gain access to the data in the dll file in a C# project. The file dosent contain anything that I shouldnt have, it is just catalogue information.
I have never accessed data from a dll file before and I dont know where to start. I can access the data using Resource hacker but when I tried to add it as a reference to my C# project in Visual studio it gave an error saying that the file isnt a valid com component. I am sure that this is obvious to anyone that has a clue about this, but as you can tell i dont.
Can anyone help me access the data in the dll file?
|
|
|
|
|
What DLL is that? A managed one or a native DLL?
Best wishes,
Navaneeth
|
|
|
|
|
dont really know the difference. All I know is that it is packaged with the program and it contains catalogue data .
|
|
|
|
|
If you can't import it into a .NET app, then it probably is neither COM nor .NET, meaning it's just a bog standard dll, and my answer below applies.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
If it's not a COM component, then you can try to reference it as a standard .NET dll. If that doesn't work, then it's not written in .NET, and .NET is the only way you could use reflection to read the contents of the dll. Even if it was COM, you still couldn't read the contents. Your best bet in that case, is to use a hex editor to see if what you want is sitting in there in an unencrypted state.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yeah ok thanks, but I am really looking for an easier solution.
|
|
|
|
|
Well, it doesn't exist.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hello friends,
How do we get the position(top,left,height,width) of the child window control embedded in another window. The problem that I need to solve can be described below.
1)In skype when we have the video call we can see the video of the calling party in the window embedded in the main messenger window
2)I want to capture the video of the embedded video window of the main messenger window
3)From the process Skype.exe we can get the handle of the Skype main window and from that handle of the main window I want to find out the top,left and height,width of the embedded video window of the main messenger window. How I can achieve this? Any suggestions or alternate ways to do this?
Thanks in Advance
ritz1234
|
|
|
|
|
You can iterate over the child windows using C APIs, yes. You can use p/invoke to do it from C#. However, it sounds ugly to me. I am not sure how you'll work out what window you want. There's an API that gives you the window at a point, perhaps you need to get the user to click on the video window ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hellow
I am TAFIN from Bangladesh. I am new in C#. i need to read data from an excel file(.xsl).
plz help. code segment will be very appreciable.
Thanks in advance.
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
static OleDbConnection con;
//static OleDbCommand cmd;
public Form1()
{
InitializeComponent();
Connect();
}
DataSet ds = new DataSet();
DataTable dt = new DataTable();
private bool Connect()
{
string DB_Path= @"E:\Office Project\salary project\AttendanceSummary.xls";
string Con_Str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DB_Path + ";Extended Properties=\"Excel 8.0;HDR=No;IMEX=1\";";
con = new OleDbConnection(Con_Str);
con.Open();
//string query = "SELECT SNO, ECODE, NAME, PRESENT, ABSENT, OFF, LEAVE, LWP, OTHOURS FROM [AttendanceSummary$]";
string query = "SELECT * FROM [AttendanceSummary$]";
OleDbDataAdapter oda = new OleDbDataAdapter(query, con);
DataSet ds = new DataSet();
DataTable dt = new DataTable();
oda.Fill(ds);
ds.Tables.Add(dt);
string n = ds.Tables[0].Columns[0].ToString();
MessageBox.Show(n);
for (int i = 1; i < ds.Tables [0].Rows .Count ; i++)
{
string result = (ds.Tables[0].Rows[i][ds.Tables [0].Columns [0].ToString ()]).ToString();
comboBox1.Items.Add(result);
}
//DataSet ds = new DataSet();
// DataTable dt = new DataTable();
dataGridView1.DataSource = ds.Tables[0];
dataGridView1.Update();
if (con.State == ConnectionState.Open)
{
MessageBox.Show("Connected");
return true;
}
else
return false;
//// oda.Dispose();
// con.Close();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
//ds.Tables.Add(dt);
int index = comboBox1.SelectedIndex +1 ;
textBox1 .Text = (ds.Tables[0].Rows[index][ds.Tables[0].Columns[2].ToString()]).ToString();
}
}
/////////// Hope this will help u......... best of luck..... thank you
|
|
|
|
|
Thanks Amaan.
the code was really helpful.
i am greatful to U.
Thanks!!!
Tanim Tafin
mahbub.rabbani.84@gmail.com
tanim_csesust.2003@yahoo.com
|
|
|
|
|
your welcome........best of luck... happy coding
|
|
|
|
|
hi ,
where can i Download the Off-line Documentation about the message's question and answers of our codeproject.tell me!
i appreciate your helping!
|
|
|
|
|
I'm sorry, what on earth did you just ask ? Do you mean you want to download all the questions and answers from the past ? You can't do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
you mean i can only search messages from here?
but sometime i m out of internet service when do my job
so ....
|
|
|
|
|
|
so[^]..
I are Troll
|
|
|
|
|
i want to create a tree view based on data return from a database.hw can i do that?
|
|
|
|