Solved

PB Batch Program

Posted on 2012-03-19
4
241 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
format the code in java 6 109
mapAB Challlenge 35 173
Way to decrease size of apk file 9 106
Help with Progress 4gl Rounding Function 6 24
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave 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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

756 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