C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How Reports can be printed

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Vijay
Guest





PostPosted: Mon Nov 20, 2006 3:30 am    Post subject: How Reports can be printed Reply with quote



How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Alf P. Steinbach
Guest





PostPosted: Mon Nov 20, 2006 5:02 am    Post subject: Re: How Reports can be printed Reply with quote



* Vijay:
Quote:
How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.

You can use std::system. The function is standard, its argument string
is platform-specific. I think this should be a FAQ, but evidently it isn't.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Terry G
Guest





PostPosted: Mon Nov 20, 2006 8:04 am    Post subject: Re: How Reports can be printed Reply with quote



"Vijay" wrote
Quote:
How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.

Since you're in a hurry... I'll try to help.

On Microsoft C, there used to be a function called "system" that could
run a batch file.
You can use one of the unix-like "exec", "spawn" or "fork" family of C
runtime routines too.

terry



--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.