Solved

PB Batch Program

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 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

22 Experts available now in Live!

Get 1:1 Help Now