Getting BB to display a clicked file

Post Reply
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Getting BB to display a clicked file

Post 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
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: Getting BB to display a clicked file

Post 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
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: Getting BB to display a clicked file

Post 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?
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: Getting BB to display a clicked file

Post 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
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: Getting BB to display a clicked file

Post 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?
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: Getting BB to display a clicked file

Post 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.
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: Getting BB to display a clicked file

Post 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!
Post Reply