That was nicely put :cool: Dan Nobel
"The question is not how far. The question is, do you possess the constitution, the depth of faith, to go as far as is needed?" boondock saints
That was nicely put :cool: Dan Nobel
"The question is not how far. The question is, do you possess the constitution, the depth of faith, to go as far as is needed?" boondock saints
And option could be to find out where/ if Excel is installed on a machine via the registry. Then open the fileinfo (use Diagnostics.FileVersionInfo and FileVersionInfo.GetVersionInfo(strPathToFile)) and extract the excel.exe file version. Based on the result of that, you will know what excel version the user has. - Dan Nobel
"The question is not how far. The question is, do you possess the constitution, the depth of faith, to go as far as is needed?" boondock saints
You properly could use application.StartupPath, it returns a string containing the path to where you executed your program We can all do great things.
Here you go http://msdn.microsoft.com/vstudio/express/default.aspx :cool: It's my opinion that nothing is impossible, it's "just" at matter of enough knowledge, time and money. ;)
if you use the Graphics Namespace http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawinggraphicsmemberstopic.asp[^] You would be able to "messure" the printable area including the width. Then all you need to do is messure your text, and split it up in at reasonable fashion. (MeasureString in the graphics namespace) that could be one way of doing it ;) It's my opinion that nothing is impossible, it's "just" at matter of enough knowledge, time and money. ;) -- modified at 3:10 Wednesday 17th May, 2006
You could do something like this example
Dim fs As System.IO.FileStream
Dim scrFile As System.IO.StreamWriter
strFileName = "some path and filename"
If Not IO.File.Exists(strFileName) Then
fs = New System.IO.FileStream(strFileName, IO.FileMode.OpenOrCreate, IO.FileAccess.Write)
else
'Just open file here
Endif
code is posted "as is" an is just an example. You could check out the IO namespace http://msdn2.microsoft.com/en-us/library/system.io.aspx[^] http://msdn2.microsoft.com/en-us/library/system.io.filestream.aspx[^] this will properly give you a good idea which statements you need It's my opinion that nothing is impossible, it's "just" at matter of enough knowledge, time and money.
The file is called AssemblyInfo.vb in Visual Basic. it can be viewed from your Solutions Explorer, choose to see all files, then it should be located in the "my project" folder Nothing is impossible, it's "just" at matter of enough knowledge, time and money.
It's my experience, with .NET framework 2.0 that it's a matter of syntax, both languages have almost the same feature, is true that in VB you would need to write a little more code, and some people i know also says that VB is a "messy" language, but you can do practically the same things i both languages. It's my opinion that nothing is impossible, it's "just" at matter of enough knowledge, time and money.