|
Thanks for this quicky,
I already have an installation project in solution. But if i add those files only in installation project, How can i access these files/folders while debugging my application?
As my code uses path of exe+path of folder to access those files, folders must be inside application folder.
Mithun Shitole
"Free Your Mind"
http://www.technoyaari.com
|
|
|
|
|
Mithun.Shitole wrote: I have made folders in bin/debug/ dir so that i can access them relative to exe.
As long as you only read these files that is acceptable.
From the moment you actually need to alter (write into)/ create these files it's not, and vista won't even allow you to (well it will but it will be in the virtual drive).
Mithun.Shitole wrote: need to copy all these files with dlls which i refer to bin/release directory also.
As suggested you can do this in the setup project.
Just go to where you add the exe ('application folder' if I'm not mistaken), add the folder with the correct name, add the files need into the folder.
Watch out that you add at least one file to each folder created otherwise the setup sometimes doesn't create the folder, don't ask my why but its something I found out the hard way 
|
|
|
|
|
Make a function: openfile(path as string)
if the bin directory is in the same parent
directory as the .exe file then do this
call openfile("bin\sample.jpg")
similarly call other files.
TheMrProgrammer
TheCalcMan: A no-mouse required Calculator supporting constant operator and visual effects
Try it once, its awesome!
Just 17.1 KB download.
No installation required. No dlls. Just unrar and go. And its a freeware.
http://www.hotlinkfiles.com/files/2642094_kjwr0/TheCalcMan.rar
|
|
|
|
|
If the files are read only you should be able to include them in your VB project and set the "Copy to output directory" option to "Copy always". That way, the files will always be copied to the bin directory automatically.
|
|
|
|
|
Hi all,
I have several Crystal Reports in my application. Of course, I have Visual Studio loaded on my machine so the reports run fine. But my client doesn't have any Crystal stuff loaded so she can't see the reports. I know it's pulling together the data because I can see the XML files that are used as a datasource being created. I'm pretty sure this is some kind of a DLL problem.
So I googled it and everything I found talked about using Crystal's Merge Modules in my installation project. Only one problem... no installation project for this application. All we do is straight build the EXE and then include all the files in the release directory in the virtual application building configuration. So now I have to figure out how to include the Crystal stuff in the virtual app. I've tried including the following DLLs as but that still doesn't allow the user to see the reports:
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.Infostore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
I don't know if I need registry tweaks or what. Anyone else encountered this? Thanks!
Denise "Hypermommy" Duggan
|
|
|
|
|
You could have them manually install the crystal reports stuff by giving them the redistributable that would otherwise have been a part of the installation project. I believe it's called: CRRedist2005_x86.msi
That said, I know it's kinda gross to learn how to make an installation program, they aren't very intuitive. But once you've learned it they are very nice and make things a lot easier for your user. They only have to click one setup.exe and they can get all prerequisits and your program. Less hassle for them. So I recommend breaking down and creating the setup project.
|
|
|
|
|
Thanks!!!
Unfortunately, installation is not an option. This program runs on a stick and has to be darn near instantly accessible to whatever machine the stick is put in.
Thanks again.
Denise "Hypermommy" Duggan
|
|
|
|
|
I don't think you'll be able to use Crystal without installation.
When you install the Crystal runtime it installs hundreds or thousands of files in different directories.
Tosch
|
|
|
|
|
as a newbie to VB.net Forms development and a student, I'd like some advice on
the following.
I want to use the tabcontrol and created tabpage then I want to close tabpage by add button Close to tab title(tabpage.text).
Thank for your reading and Hope you'll can help.
|
|
|
|
|
|
thank but I would like to do that on VB.Net not C#
|
|
|
|
|
So convert the code. There's plenty of online conversion utilities. All you have to do is Google for "vb.net c# code conversion".
|
|
|
|
|
There are plenty of convertors available on net, or you can convert it on your own. Or try your luck with Google.
|
|
|
|
|
You will benefit more if you do the C# to vb conversion yourself (with Googles help on Keywords)
I don't speak Idiot - please talk slowly and clearly
I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury
Driven to the arms of Heineken by the wife
|
|
|
|
|
Thank all that you help I can get it. but I need to add it by other ways Like the tab on Mozilla Firefox tab page can you give me some advice about it? one a gain thank you for all your useful answer.
|
|
|
|
|
Now I asking you to attach file (VB.Net source code) to me please but if you busy you could copy for me at University tomorrow.
|
|
|
|
|
Are you serious with this question?
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I wish you all the luck in the World, especially Hawaii, in getting anything here.
Seriously, WTF is your medication and have you been taking it as prescribed?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
maybe you need rentacoder.com ?
|
|
|
|
|
Good luck from Hawaii.
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi All,
I have a folder in which many images are save. And i want to get the list of files from there short by Created Time.
My Code is this please check it.
backgroundImageDir= "C:\Images\"
For Each file As IO.FileInfo In backgroundImageDir.GetFiles()
stringfilepath = file.FullName.ToString
Next
Thanks
If you can think then I Can.
|
|
|
|
|
Hi,
this is a C# example, you can do the same in VB.NET; there are two key factors:
1. using DirectoryInfo.GetFiles() returns an array of FileInfo which holds name and dates for each file;
2. implementing the IComparer interface to tell Array.Sort how exactly it should perform the sort.
public class CPTest_Sort : IComparer<FileInfo> {
public override void ListDirOrderedByCreationDateTime(string dirname) {
DirectoryInfo di=new DirectoryInfo(dirname);
FileInfo[] fis=di.GetFiles();
Array.Sort(fis, this);
foreach(FileInfo fi in fis) {
log(fi.Name.PadRight(30)+fi.CreationTime);
}
}
public int Compare(FileInfo fi1, FileInfo fi2) {
DateTime dt1=fi1.CreationTime;
DateTime dt2=fi2.CreationTime;
if (dt1<<dt2) return -1;
if (dt1>dt2) return 1;
return string.Compare(fi1.Name, fi2.Name);
}
}
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Thanks For Halpting
If you can think then I Can.
|
|
|
|
|
Chaps and Chapettes,
I am getting the following error in my wee data application: -
Cannot set column 'vcGraphicCode_GRA'. The value violates the MaxLength limit of this column.
The code does a pretty standard create a new row via a oRow = table.newrow() statement, then populates oRow.<list of="" columns=""> with a set of values (no nulls here btw). Then does a table.AddRow(oRow)...this is when I get the error.
The particular column in the error is a string of 5 characters (a SQL 2005 varchar(5) column). The value I place in there is for example "00152". The table I am inserting the row into is always empty (since the table is on a form for setting up new SKU items). The table is also pre-defined in an XSD file within my project.
Yes, the error informative is pretty straight forward. However, the maximum size of the field is 5 characters and the value I am attempting to place into it is exactly 5 characters in length.
I'm beginning to think that sticking with VFP, where this operation would be a straight INSERT on a remote view, would be easier!
Monkey
|
|
|
|
|
So there would be some length problem?
you did not try making the field a VARCHAR(6) or the data somewhat shorter, say "0152", did you?
you did not think about a terminating NULL character that also needs to be stored, just like C does?
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|