Solved

PB Batch Program

Posted on 2012-03-19
4
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 77
Copy Files - Python 7 133
Excel file not created as expected 7 109
Link failure 16 89
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

737 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