|
Hi,
paint/draw your stuff in a paint handler, and nowhere else.
The paint handler gets called when something needs to be repainted; and also
when you call Invalidate() e.g. because the drawing needs a change.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
I am working on Windows application using language C#. Actually I want to write the code to convert from MS word into PDF document.
In this process I need to add docuPrinter Library(COM Component) as reference. But it is not there in COM Component. How should I add DocuPrinter Library in my project or is there any another way to handle this?
I will be thankful to you.
adil kazmi
|
|
|
|
|
I think you'll have more luck asking this of DocuPrinter's developers - or consulting their support docs:
http://www.neevia.com/support/[^]
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
Actually i have a class shown below.
class demo
{
DbConnection mConnection;
string Connectionstring;
};
then i create an object of demo like below
demo d=new demo();
Now i want the following
oledbcommand comm=new oledbcommand();
comm.connection= d; // what i want here is d should return mConnection and
// nothing else.
is there any way to do so.
Pls help.
|
|
|
|
|
What you want is against the basic principles of object oriented design and language. No you can't. I suggets you read a C# course book and focus on sections regarding properties. You vvcan attach mConnection to a public property, say you name it Connection.
then you can say: comm.connection=d.Connection.
You also can make teh member mConnection publc and then you refer to it as: d.mConnection
Rudolf Heijink
|
|
|
|
|
You *can* do it, via conversion operators. I'd concur that it's not a great idea, but it can be done.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, you can define an explict conversion between one class and another.
Try this[^]
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
You can create a class by inheriting the Connection class.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi all.
1.is there any way other than using "twain.class" for programming on scanner?
2.is there any API for the developers so that they can program on canon scanner product?
|
|
|
|
|
1 - only if the scanner exposes another method, such as through WIA. TWAIN is the standard tho
2 - No. The point of TWAIN is that it's a common interface, there's nothing specific to Canon. TWAIN dlls can be bought, but I think there's a free one on this site.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I Made my scanner part with help of WIA. WIA has its problems tho.I found it very easy to crasch tha WIA when scanning, so if i had another option i would use that.
|
|
|
|
|
First, sorry if this is not the right place for this offer. I'll gladly post to another place.
We are planning development of a new application (.NET/SQL Server) to manage just-in-time orders from a client. We receive and produce (print) these orders (XML from SAP) weekly. The current application (VB5) is not up to the task anymore. New application must be able to handle the complete workflow:
- read xml orders
- look up x weeks to optimize quantities, taking into account orders that are already in production/delivery
- semi-automated blanks placement on printing forms for cost optimization
- output of production, quality control, delivery and invoice documents, label printing or interface to label printing software
- interface for bookkeeping/recalculation
Detailed specifications should probably be established onsite (Switzerland), coding can of course be done offsite. We expect specification to take up to 5 working days, coding 2 - 3 months. Working language German, French or English, UI translation can be done by us.
Thanks in advance for your answer
|
|
|
|
|
Hi there, may i know in detail whats the exact requirement u r looking for.
can u also elaborate the location of the project to be done.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi
Requirements are (if I understand you correctly)
- obviously, good knowledge of either C# or VB.NET, SQL Server 2000 or 2005
- experience in developing workflow application
- experience in the printing business an advantage, but not required
Location for the onsite part is near Solothurn, between Bern and Zurich. Accomodation can be organized by us.
|
|
|
|
|
hi again
for which organization i have to work for, how many team members are there.
after completion of project what the next scope about the work.
Min how much experiance u are looking for.
Can i have the offer details.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
PCP.NET wrote: First, sorry if this is not the right place for this offer.
Ok, but it's obviously not the right place, and I think you know that!
P.S.:PCP.NET wrote: coding 2 - 3 months
If you mean man months, I hope you have no deadline then!
All the best,
Martin
|
|
|
|
|
This is not the ideal place for this, there is a dedicated Jobs forum IIRC.
Out of interest, and idea on pay for this?
|
|
|
|
|
//Change the column names.
int i;
for (i =0;i<= (ds.Tables[0].Columns.Count - 1);i=i+1)
ds.Tables[0].Columns[i].ColumnName = "C:" + i.ToString();
colname = ds.Tables[0].Columns[0].ColumnName;
//display the data in the first row of the first column
Console.WriteLine(ds.Tables[0].Rows[0][colname.ToLower()]);
I want to get rid of int i; (integer) and replace it with string which will give me e.g.
C:A for first column
C:B for second column
Can anybody please help me???
|
|
|
|
|
So you want to display A,B,C instead of numbers? What if you run out of letters?
|
|
|
|
|
Hi to all.
Does any one work with TOC in Wood documnet through c# code.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Look up documentation on Office Interop classes and there should be something there about TOC...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
sorry iam new to this kind of forums.here after i will keep discussion in the same thread.
i tried as u said and given the code also but still the same kind of error is coming----The ConnectionString property has not been initialized
ERROR IS The ConnectionString property has not been initialized IN CON1.OPEN().Plz help in solving these problem, iam a fresher.Thanks in advance
public partial class detail : System.Web.UI.Page
{
//string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DataFinal.mdb;User Id=admin;Password=;";
String con1 = "Provider=Microsoft.JET.OLEDB.4.0;data source=path\\db1.mdb";
String con2 = "Provider=Microsoft.JET.OLEDB.4.0;data source=path\\db2.mdb";
protected void Page_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
}
protected void Button1_Click(object sender, EventArgs e)
{
OleDbConnection con1 = new OleDbConnection();
con1.Open();
DataTable tables1 = con1.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
foreach (DataRow row in tables1.Rows)
DropDownList1.Items.Add(row[1].ToString());
OleDbConnection con2 = new OleDbConnection();
con2.Open();
DataTable tables2 = con2.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
foreach (DataRow row in tables2.Rows)
DropDownList2.Items.Add(row[1].ToString());
}
-- modified at 2:20 Friday 24th August, 2007
|
|
|
|
|
I would have attempted to answer this AGAIN had you not been rude enough to delete your original message below.
In future please keep discussion on the same topic to the same thread.
|
|
|
|
|
I have already answered the same question several messages below. I guess you are the same person and you have deleted the message? Don't double post
|
|
|
|