|
i have developed a C# code and have converted it into a setup format with the help of "PUBLISH" option in VC#....so that this can be hencefort used at any system.
the thing i also need to place a "help file" (which would guide the users about the application ) in the same folder as of the location where the setup file would store that application.
kindly guide me as to how should i proceed??
thanks.
|
|
|
|
|
Add the help file/ Read Me file in the solution itself.
|
|
|
|
|
in the solution u mean by right clicking in the solution xplorer.....am i correct???
i ahve done that...bt even thats not working...is it possible that i am using VC#2005 xpress edition as a result f which it is nt attaching the read me file???
|
|
|
|
|
before publishing, you can choose the files to publish and even to add other files. search for this option in the project properties!
Good Luck!
|
|
|
|
|
Can any one tell me how to deploy and configure a C# application on user's computer.
|
|
|
|
|
Create a Setup project and add the project output. You'll have to write an custom Installer assembly and add it to the custom actions if you want to confugure it during the installation.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
hi
i want to extend the standard DataGridView in vs 2005 mySelf, and i want to add footer to DataGridView,this is my code to override paint method :
public partial class ExGridView : DataGridView<br />
{<br />
private int _footerHeight;<br />
public ExGridView()<br />
{<br />
InitializeComponent();<br />
_footerHeight = 20;<br />
}<br />
<br />
public int FooterHeight<br />
{<br />
get<br />
{<br />
return _footerHeight;<br />
}<br />
set<br />
{<br />
if (_footerHeight != value)<br />
{<br />
_footerHeight = value;<br />
Invalidate();<br />
}<br />
}<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
Rectangle rOrginal = this.ClientRectangle;<br />
Rectangle rFooter = new Rectangle(0, this.Height, this.Width, _footerHeight);<br />
e.ClipRectangle.Offset(0, _footerHeight);<br />
e.Graphics.DrawRectangle(Pens.Black, rFooter);<br />
e.Graphics.DrawString("Test", this.Font, Brushes.Black, new PointF((float)rFooter.X + 10, (float)rFooter.Y + 5)); <br />
}<br />
} but when compile my app and add myControl (ExGridView) to my form, nothing occured, where does problem and how to solve it ?
|
|
|
|
|
Hi,
seems rFooter is outside the ClientRectangle, so it gets clipped completely.
remedy: give top part of ClientRectangle to base.OnPaint, keep bottom part for your
owner-drawn footer.
|
|
|
|
|
thanks Luc Pattyn
can u say me how to solve my problem and extending clip of DataGridView to contain rFooter Rectangle by code? (because i'm beginner)
thanks
|
|
|
|
|
You can not extend the ClientSize of the DGV.
As I said before, you must split the available ClientSize in two parts;
one part for the DGV and one for your footer.
So that means you must create a new PaintEventArgs with a reduced clip rectangle, and
pass that to base.OnPaint().
|
|
|
|
|
I am working on a project, which uses the Interop.Excel type from the namespace Microsoft.Office
But I get the following error.
Error The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?) I have installed Microsoft office 2003 on my machine. I've got this project copied from another machine to my laptop, but it works fine there. What could be the problem?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
This may be a silly question but have you checked that your references are correct in the VS project on your laptop?
Are the files you are referencing against on the laptop?
That would be my first port of call.
Stu Richardson
|
|
|
|
|
You have to download and install PIAs (Primary Interop Assemblies) for your version of MS Office from Microsoft's site.
|
|
|
|
|
Thank you. That helped me. Sorry for the delayed reply.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I am doing a project that use UPC A barcode. I found the code to convert number to UPC A barcode and it works well. But i am having an error converting UPC A barcode to number.
Is there any to help me. I would be very grateful to You.
Thank you!!
deepak
|
|
|
|
|
hi,
there are a lot of articles related to barcodes in CP.
regards
|
|
|
|
|
i have a string that i wish to store as contents of a textfile.
i would be providing the user with the savedailog option.
can any1 plz guide me as to how can should i develop the code such that whatevr filename the user specifies in the savedialog box,the string data gets transferred to the file in .txt format.
thanks
|
|
|
|
|
StreamWriter class will help you
|
|
|
|
|
string content = "Whatever... :)";<br />
SaveFileDialog fileDialog = new SaveFileDialog();<br />
if (fileDialog.ShowDialog() == DialogResult.OK)<br />
{<br />
TextWriter writer = new StreamWriter(fileDialog.FileName);<br />
writer.Write(content);<br />
writer.Close();<br />
}
|
|
|
|
|
hey thanks manav....
but i have got stuck again.
saveFileDialog1.Filter = "Text File|*.txt|";
this code is giving error for me.how should i cahnge it to save it in a text format.(*.txt)
|
|
|
|
|
saveFileDialog1.Filter = "Text File|*.txt";
|
|
|
|
|
Hello Luc,
Your link to "Forum Guidelines" doesn't work any more!
All the best,
Martin
|
|
|
|
|
Thanks Martin, I think I fixed it now.
|
|
|
|
|
Hello
fileDialog.Filter="*Text File (*.txt)|*.txt";
All the best,
Martin
|
|
|
|
|
Remove | from filter...
Here is the new code
string content = "Whatever... :)";<br />
SaveFileDialog fileDialog = new SaveFileDialog();<br />
fileDialog.Filter = "Text File|*.txt";<br />
<br />
if (fileDialog.ShowDialog() == DialogResult.OK)<br />
{<br />
TextWriter writer = new StreamWriter(fileDialog.FileName);<br />
writer.Write(content);<br />
writer.Close();<br />
}
|
|
|
|