|
The only doubt remained is the projects to be added should be windows application or it can be something else (I wish to keep only class files in that project, which will be used for Data Access Layer and Business Logic Layer)
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
You can use Class Library project.
|
|
|
|
|
As there is no interface needed for other two layers BLL and DAL so you should make them class libraries.
Create a new web application project and add your other two class libraries in the same solution. this will help u out when u start coding.
|
|
|
|
|
Hello Friends,
I am developing an barcode application and i am facing a problem that i am unable to arrange multiple prints on a single page it only print one barcode on one page another barcode on another page. So how can i arrange multiple barcode print on single page.
|
|
|
|
|
You need to write your printing code so it draws the barcode more than once on the page. Your print code just calls your normal paint code, so you need to change how that works during a print.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi
I was worked with a POS Software project there we have to print the barcode labels then i also faced the same problem, The solution i got is as follow
Use database to store barcode images then bind the database picture field with some reporting tool like crystal report.
I solve my problem in this way hope this will help you also
Yogesh Agarwal
|
|
|
|
|
I create a TextBox in windows Form and starting typing in some letters
say: hello
but I want to replace the letter "e" to something else(say a dollar sign) as soon as keydown onto the letter "e" on the key pad. I used the replace() and it work but the "cursor" did not move to the end of the string for ready to continue on with the typing.
please help me out with this.
VyT
|
|
|
|
|
Hi
use sendkeys function like this
<br />
textBox1.Focus();<br />
SendKeys.Send("{End}");<br />
Yogesh Agarwal
|
|
|
|
|
it works
thank you so much
VyT
|
|
|
|
|
Override the OnKeyPress event or OnKeyDown, I can't remember which.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
I have a .NET 3.5 app (built using VS2008 RTM, no CTPs installed) that uses CSharpCodeProvider to compile some generated code that requires .NET 3.5. When I set the compiler's .NET version to 3.5 (per the MSDN example), I get a "csc.exe not found" exception thrown when I try to compile. Here's what I'm doing:
CompilerParameters cp = new CompilerParameters();
cp.xxx = xxx;
Dictionary<string,string> providerOptions = new Dictionary<string,string>();
providerOptions.Add ("CompilerVersion", "3.5");
CSharpCodeProvider codeProvider = new CSharpCodeProvider (providerOptions);
string sourceCode = "...";
CompilerResults cr = codeProvider.CompileAssemblyFromSource (cp, sourceCode);
If I use CSharpCodeProvider 's default constructor, the code compiles if it's .NET 2.0 compliant, but (expectedly) generates an "unknown reference" error if I try to reference a .NET 3.5 stock assembly.
A nudge in the right direction would be appreciated.
Thanks!
/ravi
|
|
|
|
|
hello..
i want to display news in the desktop application using rss feeds....
i am using the browser control but when i provide it the link of the rss feed it returns somthing like xml...plz help me about how can i display the news properly
|
|
|
|
|
Will this[^] article help?
/ravi
|
|
|
|
|
You look really young in that picture.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Thanks! I attribute my youthful appearance to years of physical inactivity, lack of exercise and furious debugging. And ham.
/ravi
|
|
|
|
|
thanks a lot thats what i wanted to learn about.thanks
|
|
|
|
|
Hello,
I've manipulated the code from this site
http://www.geekpedia.com/tutorial50_Drawing-with-Csharp.html[^], as follows at the bottom of the page, and modifying the form in the way to show scroll bars. Doing it I got some problems with scrolling.
In fact, running the form everything go well, scrolling with the bar it repaint well... But if I click on the arrow for scrolling, it doesn't repaint as well. Try to check and let me know, please, how to solve this problem.
protected override void OnPaint(PaintEventArgs e)
{
// Get the graphics object
Graphics gfx = e.Graphics;
// Create a new pen that we shall use for drawing the line
Pen myPen = new Pen(Color.PaleGoldenrod);
Pen myBPen = new Pen(Color.Goldenrod);
// Loop and create a horizontal line 10 pixels below the last one
for (int i = 0; i <= 3000; i = i + 10)
{
gfx.DrawLine(myPen, 0, i, 2990, i);
}
// Loop and create a vertical line 10 pixels next to the last one
for (int x = 0; x < 3000; x = x + 10)
{
gfx.DrawLine(myPen, x, 0, x, 2990);
}
// Loop and create horizontal line 40 pixels next to the last one
for (int z = 0; z < 3000; z = z + 40)
{
gfx.DrawLine(myBPen, 0, z, 2950, z);
}
// Loop and create a vertical line 40 pixels next to the last one
for (int zz = 0; zz < 3000; zz = zz + 40)
{
gfx.DrawLine(myBPen, zz, 0, zz, 2950);
}
}
|
|
|
|
|
What does 'not so well' mean ?
This code doesn't show any signs of responding to scrolling at all, it just draws the same thing, as far as I can see.
Christian Graus - Microsoft MVP - C++
"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 apologize, I missed to say I set A.minscroll property in the form to show the scroll bar...
|
|
|
|
|
Hi everybody,
I am dabbling with Crystal reports at the moment using C# .NET 2005.
Is it possible to specify the database source at runtime?
My program dynamically creates databases at runtime and stores their location in the registry. Being able to change databases at runtime would be of massive use.
Anybody got any ideas?
Thanks
Jonathan Harker
|
|
|
|
|
If the databases have identical schema information it is fairly easy, you can loop through the Database.Tables collection and set the logon information using SetLogonInfo. If the schema is even slightly different it is PITA and I don't have the code in front of me to help.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Thanks for your quick response.
Unfortunately to complicate matters, the schemas in each table are quite different.
Jonathan Harker
|
|
|
|
|
Good luck! The documentation is sparse and can change between versions of Crystal, it can be done but the effort is not worth it. Instead set your reports to use a dataset data source and then use your application to bring the data together into an identical dataset and you will be able to use many different databases quite easily.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
been experimenting with the code, come up with this so far
<br />
OleDbConnection Connection = new OleDbConnection(@"Provider=Microsoft.JET.OLEDB.4.0;data source=C:\My db.mdb;");<br />
<br />
OleDbDataAdapter adapter = new OleDbDataAdapter();<br />
<br />
DataSet ds = new DataSet();<br />
<br />
adapter.SelectCommand = new OleDbCommand("SELECT CampaignName FROM ACTIVITY", Connection);<br />
<br />
adapter.Fill(ds, "ACTIVITY");<br />
<br />
ReportDocument rd = new ReportDocument();<br />
rd.SetDataSource(ds);<br />
<br />
crystalReportViewer1.ReportSource = rd;<br />
throwing the following exception:
Invalid report file path
not exactly sure what im doing here. please advise.
Jonathan Harker
|
|
|
|
|
When you initially create the report and specify the database through the CR wizard select a file based copy of your dataset. Then at runtime use the SetDataSource method then immediately afterwards call the Refresh report method.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|