[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Check the following.
1. Compare the config file you are using for thin client vs the one you use that works. If you are using code-case, you must change your environment variable in the program prior to calling the dll to unset code-case then when it finishes, set it back the way you need it. If you have code-case set to either upper or lower, it will not find the section in the dll because it is both upper and lower case.
2. In you call statement you may need to modify to this syntax.
CALL "@[DISPLAY]:MyDll.Dll".
3. Make sure the dll is in your object directory or in one the windows paths.
Patty
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Hi Patty,
First I want to thank you for taking the time to help me out.
Being brand new to AcuCorp's Client/Server technology I must first explain that my level of ignorance is monumental - but I am reading as much as I can everyday - and hopefully absorbing something.
Your answer has started me on a quest through my manuals. I'm learning about setting environment variables (SET ENVIRONMENT), where all my config files are, and what variables like code_case control.
What I haven't figured out yet is how I determine what config file is being used by AcuBench without ThinClient vs what config file is being used by AcuBench with ThinClient.
I'll let you know what progress I've made.....and Thanks again!
John C.
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Hi Patty,
First I want to thank you for taking the time to help me out.
Being brand new to AcuCorp's Client/Server technology I must first explain that my level of ignorance is monumental - but I am reading as much as I can everyday - and hopefully absorbing something.
Your answer has started me on a quest through my manuals. I'm learning about setting environment variables (SET ENVIRONMENT), where all my config files are, and what variables like code_case control.
What I haven't figured out yet is how I determine what config file is being used by AcuBench without ThinClient vs what config file is being used by AcuBench with ThinClient.
I'll let you know what progress I've made.....and Thanks again!
John C.
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Well, the config file on my HP points to the correct location for AcuBenchPrint.dll, but Thin Client can't find the AcuBenchPrintExecWBPreview program within it......any suggestions? Thanks in advance.....
Config file on the HP:
CODE_MAPPING ON
DLL_CONVENTION 1
ACUBENCHPRINT.DLL @[DISPLAY]:C:\\Acucorp\\Acucbl620\\acubench\\AcuBenchPrint.dll
ACUBENCHPRINTDUMMY @[DISPLAY]:C:AcuBenchPrintDummy
ACUBENCHPRINTEXECWBPREVIEW @[DISPLAY]:C:AcuBenchPrintExecWBPreview
Error:
AcuBenchPrintExecWBPageSetup: Program missing or inaccessible
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
You might also check the "/" slashes. Having a mixture will not work or if they are not the correct direction. In Acucobol it does not matter, but this is a DLL and it does.
Here is our code that works fine.
inspect prt-fullfilename replacing all "/" by "\\".
set environment "DLL_CONVENTION" to "1".
accept save-code-case from environment "CODE_CASE".
set environment "CODE_CASE" to 0.
call "@[DISPLAY]:AcuBenchPrintDummy"
on exception call "@[DISPLAY]:AcuBenchPrint.dll" end-call
end-call.
call "@[DISPLAY]:AcuBenchPrintExecWBPreview" using
by content prt-fullfilename,
by content print-browser-para,
by content acu-paper-header,
by content acu-paper-footer,
by content acu-paper-size,
by value acu-paper-orientationint,
by content acu-printer-name,
end-call.
set environment "CODE_CASE" to save-code-case.
Patty
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Hi Patty,
Thanks again for taking the time to help. I'll try your suggestions and get back to you....BTW do you receive an email alert when I respond to your post? I'm not sure if you are aware of my reply to you or if you have to re-visit the thread.
Sincerely,
John C.
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Hi Patty,
Thanks again for taking the time to help. I'll try your suggestions and get back to you....BTW do you receive an email alert when I respond to your post? I'm not sure if you are aware of my reply to you or if you have to re-visit the thread.
Sincerely,
John C.
[Migrated content. Thread originally posted on 05 April 2005]
I used the Report Composer for the first time to create a print output for my data (easiest report I ever created in 24 years of COBOL programming).
My problem is that if I print from the client (PC) in Workbench without ThinClient turned on, it runs and prints fine to my network printer. When I try to print using ThinClient and running the program from the server I get an error:
AcuBenchPrint.dll : Program missing or inaccessible.
I read Bob Cavanaugh's article in Acucorp News Issue 1 2004 which explains this process, but I still can't figure out the problem.
How can AcuBenchPrint.dll not be seen by the program running in ThinClient mode and be seen without ThinClient?
Mapping problem?
Thanks for any help,
John C.
Thanks Shaun & Patty for all your assistance.
I added these lines to my HP config file:
ACUBENCHPRINTDUMMY @[DISPLAY]:AcuBenchPrintDummy
ACUBENCHPRINTEXECWBPAGESETUP @[DISPLAY]:AcuBenchPrintExecWBPageSetup
ACUBENCHPRINTEXECWBPREVIEW @[DISPLAY]:AcuBenchPrintExecWBPreview
ACUBENCHPRINTEXECWBPRINT @[DISPLAY]:AcuBenchPrintExecWBPrint
ACUBENCHPRINTGETCOPIES @[DISPLAY]:AcuBenchPrintGetCopies
ACUBENCHPRINTGETMARGINS @[DISPLAY]:AcuBenchPrintGetMargins
ACUBENCHPRINTGETORIENTATION @[DISPLAY]:AcuBenchPrintGetOrientation
ACUBENCHPRINTGETPAPERNAME @[DISPLAY]:AcuBenchPrintGetPaperName
ACUBENCHPRINTGETPAPERSIZE @[DISPLAY]:AcuBenchPrintGetPaperSize
ACUBENCHPRINTGETPRINTERNAME @[DISPLAY]:AcuBenchPrintGetPrinterName
Then I added this code to my COBOL program in between the automated code line "PERFORM Acu-TheGreensReport1-PRINT-PARA" as stated in the AcuCorp news:
CALL "C$COPY" USING "/the/correct/path/on/the/HP/to/Report1.html",
"@[DISPLAY]:C:\\The\\correct\\path\\on\\the\\PC\\for\\Report1.html".
PERFORM Acu-TheGreensReport1-PRINT-PARA
STRING
"C:\\The\\correct\\path\\on\\the\\PC\\for\\Report1.html",
delimited by size,
X"00", delimited by size,
into PRT-FULLFILENAME.
And it printed.......:)