 |
|
 |
Hi, I would like to know if exists some dll for to read and configure the weight screen from Mettler Toledo brand.
Regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
there is no .dll for the static scales. If you want to send and receive data from a static MT scale's you need to implement the SICS protocol. But then you must pay licence fees for it.
Sorry but that's a proprietary thing we earn money with.
Regards
Thomas
By-the-way: For the industrial scales, metal detectors and XRay's we have just developed a new kind of protocol based on XML-RPC. Will be out this year.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Thanks for showing your code. I have been trying to incorporate this code into an Excel spreadsheet as a means to prefilter files by file type and name thereby minimizing a user from selecting the wrong file. This code prefilters the file selection nicely, however, when a file is selected to be opened nothing happens. What am I doing wrong?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Great, been struggling with this problem for a few days. Because I send a lot mails with large attachments, I need to know what I sent someone, to be exact I need to register the full pathname of the file, just to keep up with revisions. That way I don't have to keep the attachments in my mails. Same goes with recieved attachments, I can now just register the path I put it in. I'll be happy to get rid of all these attachments, they are just clogging my system, a .pst with 2.5 GB attachments in it...... Happy I found this place...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Hasler Thomas Hi everyone
I've downloaded your sample code and found it very interesting and helpful. Thank you for the code. However, I want to customize the "Open file" dialog box. I need to open the newest file in a folder which has thousands of files. Normally, the folder is sorted by filename which make it diffilcult to find the newly born file saved to that folder. I want to sort that folder by date (descending) so that the newest-created file will come out on top. It is easy to do so in Explorer. But in VB, the template of Explorer is not applied. I know I need to use API "GetOpenFileName" as you did in your code but I don't know how to flag it. Can you help me?
|
| Sign In·View Thread·PermaLink | 1.33/5 (3 votes) |
|
|
|
 |
|
 |
Your code allow to open only one file at a time. What could I change to open more than one file? Your help will be really appreciate, I'm not an expert in VB. Thanks
Martin Côté
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello,
I haven't worked on this code for a long time. In fact the last three or four years I just used Java and C / C++. But I will have a look if I can help you. (Have to reread the MS Developer API)
Thomas
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello folks:
for adding multiple section in the dialog, set the flag thOFN_ALLOWMULTISELECT in the function GetOpenFile(...)
froorider :->
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I've found that the function GetOpenFile() has no utility in the code. The Start_it() seem to do the samething. Now, I'm able to open a dialog with multi-selection activated.
But, what I want to do now... is to print the name of each selected files in different cell of an excel worksheet.
What I've obtained now is only one string containing all selected files separated by a space.
Worksheets("proposal").Range("test") = thCommonFileOpenSave(InitialDir:="C:\", Filter:=strFilter,_ FilterIndex:=1, Flags:=lngFlags, DialogTitle:="File Browser")
Do you have a trick to put each file to a single variable or in a arra and not all in the same package.
Thanks again
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi, i would like to implement a folder browser for VSS using VB6.(similar 2 the explorer in windows) how do i go abt doing it?.
Antony
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi Dear Hasler Thomas I've to make a plug-in for MS Outlook. This plug-in will take a particular date, and will delete all the attchments of the e-mails which are older than that specific date. Kindly guide me for the task. How can I start the task and which programming envirornment is best.
Can I use VBA as best tool for the task?
Provide/guide me some sample code if possible. I'll be very grateful to you. Waiting for your kind response. Atif
Watch Your Thoughts for they will become your actions. Watch Your Actions for they will become your habits. Watch Your Habits for they will become your beliefs. Watch Your Beliefs for they will determine your destiny.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
It takes some time to show the dialog box reached by the Browse-button, no to long but I would like access the dialog box as fast as one can other dialog boxes, for example Open..., Save...
Any sugestions?
Lars Wiberg
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
The problem is, that VB - Code is not a native Code and has to be interpreted first. That's why it is slower. If you would write this things in C++ and complie it to native Bytecode it would be much faster. That's why i.e. Java-Applikations are so slow on your machine.
I guess it's not possible to make it faster.
the froorider
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
i am trying to use this code in access but it is not working the browse box some times opens and some times not can any one help
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
I am getting the same thing happeninig in Access 2000!!! It seems to be that when I first load up a form and click the Open cmd (which runs the code) it doesn't work first time and I'm given a err 94 invalid use of null. But if I then go into design view and look at the code then return to form view it works perfectly........hmmmmmm.
Any ideas?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello,
unfortunatly I do not have an Access 2000. I have only an Access 2003. Until now I haven't test the .bas - module in Access, but I'm trying to give you an answer. First I must have a look at this "old" code
Until then I've found a little sample for Access 2000 using the same API on MSDN: Verwendung der GetOpenFilename-Methode der Comdlg32.dll[^]
This should work for you. And it is time that I do some "refactorings" on this article.
Regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I've send an updated sample (Excel and Access) to CodeProject. The only thing I ve found was in the GetOpenFile Function of the module there were useless EndIf's. Perhaps this caused your errors. But I wasn't able to reproduce your errors. Can I mail you the Access-sample? Then you could check if this still appears.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Hy Anonymous,
you can just use the GetOpenFilename method. But it is made by the Office programmers themselves and you can only use the functionality they gave to it. For being honest it makes the same thing in the background like my code do, but mine you can change as you want, and give it more functionality.
Greets
Tom
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
Good day,
I am trying to use your code from "A Filebrowser for VBA" for capturing a filename including path into a SQL database field. I am using a Microsoft Access Project as the front-end. I associated the code with the OnGotFocus event property and receiving this error:
Only comments may appear after End Sub, End Function, or End Property.
I changed the form and field name to my form and added 2 additional file types for variables.

LWhite
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Dear Thomas,
Very nice code, I think it's missing the following though:
' Code courtesy of: ' Microsoft Access 95 How-To ' Ken Getz and Paul Litwin ' Waite Group Press, 1996
{next time at least rename the functions}
No_Sprockets
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Dear unnamed Person,
1. It is true that I have used in my code parts that I haven't written myself.
2. I have found a lot of things in an online API-Guide, but I have never read the book you mentioned. ( Self-teaching !!)
3. It would be better if I have renamed the functions so that it wouldn't be clear that it's not all from me. I have written this code over one year ago and I have learned a lot of things since that.
4. I have recieved mails from round the world of office-users (not experts!) who liked this code and are lucky that somebody wrote this. And that was the only reason why I published this article.
5. If you look at the code better you will see that it doesn't work in Access in this way, only in Excel and Word!!!
6. Have a lot of fun.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
The code does actually work in Access and I use it there. You just have to change the StartIt function slightly. Here is what I changed in the StartIt function to have it work with Access2000.
strFilter = thAddFilterItem(strFilter, "Text Files(*.txt)", "*.TXT")Form_frm_its_ltr.txt_mail_merge_file.Value = thCommonFileOpenSave(InitialDir:="S:\Form-Letter", Filter:=strFilter, FilterIndex:=3, Flags:=lngFlags, DialogTitle:="File Browser")
This calls up the S:\ drive and gets teh text files there.
I have the book that the cowardly no-name anonymous e-mailer sent and it is pretty much identical. I do not they call it StartIt either. It is not to say that they were the original author either. As you said I appreciate it being on the web because I lost the CD the code was on that I got with the book.
That guy needs to lighten up.
|
| Sign In·View Thread·PermaLink | 4.00/5 (3 votes) |
|
|
|
 |