Solved

PB Batch Program

Posted on 2012-03-19
4
236 Views
Last Modified: 2013-01-25
Short background about the application

My application uses Powerbuilder 12 as the frontend and Oracle 11g as backend. We use VC++ for the batch process for A -> A and B -> B transactions.

My PB application  has many customized printing functionalities developed within itself like printing reports, invoices etc . So far everything has been done through the application PB screens on demand when "Print" button is clicked by the user.

Now we are planning to enhance the system to print some reports in batch mode.

Is there a way that we can write a Powerbuilder batch program which connects to the Powerbuilder application EXE and trigger some print functions within the application based on various flags in the table level? What would be the best way to do it? Any idea about this would be of great help.

Thanks,
Srikanth
0
Comment
Question by:srik_mat
4 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 37741350
i'd use windows messages to trigger any function in your powerbuilder exe application.

basically, u define WM_USER  in your app and use Send() to send the message with some parameters.

check this link:
http://pbdj.sys-con.com/node/198707?page=0,1
0
 
LVL 12

Accepted Solution

by:
Harish Varghese earned 500 total points
ID: 37796468
There are 2 ways I can think of:
  1. Implement another module in your current PB application, that will essentially make use of your current printing functionality as per requirement. This module should control all required printing functionality from a single place. You may handle command line parameters of the application to invoke this module and process required printing functionality based on parameters passed.

  2. If you can bring together all printing functionality implemented in your current application, without having to take all PBLs, you can create another smaller application with few required PBLs which have the objects required for the printing functionality. You can control the application using command line parameters again, in this application.

Thanks,
Harish
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 38818063
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
NotAlone Challenge 20 72
method argument as final 1 62
Change to event 1 74
base64 decode encode 12 97
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now