For Programmers: Free Programming Magazines  


Home > Archive > Cobol > February 2006 > Re: ouvrir un document word à partir d'un programme cobol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: ouvrir un document word à partir d'un programme cobol
2jo

2006-02-23, 7:55 am

Thanks Jimmy
Thanks for spending your time on my problem

Your answer is very interresting and I'll spend time on it
but this not what I want to do now

I explain this to you but I will search in MF forums

In VB (or VBA) we can create 'Macros' (called subs or functions) and
what i want to do is to call a sub from my COBOL program (and this Sub
is in Word)
the definition of a sub with parameters in VB is like that :
1-
private (or public) sub Name_of_sub (first_var as string)
[the code is here]
end sub

What i can't do is to specify the parameter by my COBOL program
I can call this sub but without parameter (like that)

2-
private (or public) sub Name_of_my_sub ()
[code]
end sub

the solution (1-) is what i need to do because i have to specify the
name of the file i must use, and the id of the printer
but at this time i can only do the solution (2-) and i can't choose the
printer neither the file...

I'm sorry to take your time...
I'll go to ask some help on MF forum



2jo

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com