Solved

PB Batch Program

Posted on 2012-03-19
4
239 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
notReplace  challenge 53 125
format the code in java 6 93
count8 challlenge 13 142
delphi parse string to params 3 121
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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 clear a vector as well as how to detect empty vectors in C++.

816 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

11 Experts available now in Live!

Get 1:1 Help Now