Page 1 of 1

Getting BB to display a clicked file

Posted: Mon Dec 14, 2015 2:24 am
by DGDanforth
When I click on a file (say on the desktop) that is known to use BB (e.g. csv file previously specified to use BB)
BB is opened but it does not display the file.
What is needed so BB will display the file when the file is clicked?

-Doug

Re: Getting BB to display a clicked file

Posted: Mon Dec 14, 2015 6:57 am
by Zinn
DGDanforth wrote:What is needed so BB will display the file when the file is clicked?
1. Open -> File -> System/Mod/Config.odc
2. Insert into PROCEDURE Setup* the line:
Converters.Register("HostTextConv.ImportText", "HostTextConv.ExportText", "TextViews.View", "csv", {Converters.importAll});
3. Compile this module
4. Restart BlackBox

Now it should display the csv file inside a window of BlackBox.

This is a candidate for the famos cookbook.

- Helmut

Re: Getting BB to display a clicked file

Posted: Thu Dec 17, 2015 1:33 am
by DGDanforth
Zinn wrote:
DGDanforth wrote:What is needed so BB will display the file when the file is clicked?
1. Open -> File -> System/Mod/Config.odc
2. Insert into PROCEDURE Setup* the line:
Converters.Register("HostTextConv.ImportText", "HostTextConv.ExportText", "TextViews.View", "csv", {Converters.importAll});
3. Compile this module
4. Restart BlackBox

Now it should display the csv file inside a window of BlackBox.

This is a candidate for the famos cookbook.

- Helmut
Nope, doesn't work.
.csv is correctly associated with BB.
But BB still does not open the file.
I do not know how to associate the file with my local BB which has its own config.mod.
I suspect (and can see when opened) that BB is running the server version and not
my version and hence it is using the wrong config file.
How do I associate my local BB that has

Code: Select all

"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
with the extension .csv?

Re: Getting BB to display a clicked file

Posted: Fri Dec 18, 2015 1:55 pm
by luowy
DGDanforth wrote:How do I associate my local BB that has

Code: Select all
"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
with the extension .csv?
add "%1" at the end:

Code: Select all

start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1

Re: Getting BB to display a clicked file

Posted: Mon Dec 21, 2015 5:27 am
by DGDanforth
luowy wrote:
DGDanforth wrote:How do I associate my local BB that has

Code: Select all
"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
with the extension .csv?
add "%1" at the end:

Code: Select all

start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
Added %1 but that made no difference.

Let me restate the issue.
I have a file on the desktop, business-registry.csv
The icon associated with that file is a BB document icon.
When I click on that file the BlackBox server is opened but no file is shown.
Exit.
Do properties of business-registry.csv
I see BlackBox as the application to be run.
I just changed that to point to the shortcut which runs my version of BlackBox,
BUT when the file is clicked I get the message,
"C:\Documents and Settings\Owner\Desktop\business-registry.csv is not a valid Win32 application"

What else is necessary to get this to work?

Re: Getting BB to display a clicked file

Posted: Mon Dec 21, 2015 6:17 am
by luowy
DGDanforth wrote:What else is necessary to get this to work?
1,make a bat file bb.bat in your client dir(C:\Dgd\BlackBox16) with this line:

Code: Select all

 start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
2,setup cvs file's default open app with bb.bat.
3,double click your cvs file,if not opened correctly,then reset default app:
1)setup cvs file's default open app with blackbox,and then
2)setup cvs file's default open app with bb.bat

the key is that you had to setup the file property with deferrent app several times until the system recognize it!

it can work in my pc.

Re: Getting BB to display a clicked file

Posted: Mon Dec 21, 2015 8:25 am
by DGDanforth
luowy wrote:
DGDanforth wrote:What else is necessary to get this to work?
1,make a bat file bb.bat in your client dir(C:\Dgd\BlackBox16) with this line:

Code: Select all

 start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
2,setup cvs file's default open app with bb.bat.
3,double click your cvs file,if not opened correctly,then reset default app:
1)setup cvs file's default open app with blackbox,and then
2)setup cvs file's default open app with bb.bat

the key is that you had to setup the file property with deferrent app several times until the system recognize it!

it can work in my pc.
luowy,
Thanks for your help. That works!