Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
buggabill Absent Member.
Absent Member.
2242 views

AcuBenchPrint.dll function documentation

Jump to solution

Is there any documentation on the functions exposed in AcuBenchPrint.dll?  Thanks!

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: AcuBenchPrint.dll function documentation

Jump to solution

No, I don't believe these functions are documented. I believe the dll was made in a fashion to match the generated code that AcuBench makes when you use the Report feature. Use AcuBench and Open the Reports.pjt and generate Report1a, you'll see calls like these:

CALL "AcuBenchPrintGetMargins"

CALL "AcuBenchPrintGetPaperSize"

CALL "AcuBenchPrintGetMargins"

CALL "AcuBenchPrintGetPaperName"

View solution in original post

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

RE: AcuBenchPrint.dll function documentation

Jump to solution

No, I don't believe these functions are documented. I believe the dll was made in a fashion to match the generated code that AcuBench makes when you use the Report feature. Use AcuBench and Open the Reports.pjt and generate Report1a, you'll see calls like these:

CALL "AcuBenchPrintGetMargins"

CALL "AcuBenchPrintGetPaperSize"

CALL "AcuBenchPrintGetMargins"

CALL "AcuBenchPrintGetPaperName"

View solution in original post

0 Likes
buggabill Absent Member.
Absent Member.

RE: AcuBenchPrint.dll function documentation

Jump to solution

@shjerpe - Thank you.  That kind of stinks.  Confused  I just wanted to print without a preview but needed the correct arguments.  I did find what I needed using a similar method as what you described.  For future generations, this is what I used to avoid showing a print preview and print one copy:

              MOVE 1 to ACU-PAPER-COPIES

              CALL "@[DISPLAY]:AcuBenchPrintExecWBPrint" USING

                   BY CONTENT PRT-FULLFILENAME,

                   OMITTED,

                   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 VALUE ACU-PAPER-COPIES,

                   BY CONTENT ACU-PRINTER-NAME

              END-CALL

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: AcuBenchPrint.dll function documentation

Jump to solution

All of the graphical examples examples that we provide has two pieces of code in the event editor

Report1c-After-Init.

          PERFORM Acu-Report1c-Preview      

Acu-Report1c-PREVIEW.

          PERFORM Acu-Report1c-PRINT-TOFILE

          PERFORM Acu-Report1c-PRINT-PARA

and calls CALL "AcuBenchPrintExecWBPreview" USING

You don't need to have these particular calls. You can just use

Acu-Report1c-PREVIEW.

          PERFORM Acu-Report1c-PRINT-TOFILE

          PERFORM Acu-Report1c-PRINT-PARA

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.