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



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

.



Relevant Pages

  • Re: Multiline Textbox issue
    ... to a couple more newsgroups now omitted, Rick Rothstein wrote: ... Public Sub PositionByLine ... > following code into your form's code window and specify the Line Number ... > Dim Increment As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: difference between a private sub and a public function?
    ... Lets start with Sub and Function. ... side effect (rules are made to be broken but it is a general rule). ... Private Function MyFunctionas Integer ... If you do not specify the return type then a variant is returned by default. ...
    (microsoft.public.excel.misc)
  • Re: List files from a direcotry
    ... It searches for the file type you specify or for all files. ... Files and folders in the specified directory are listed. ... > End Sub ... > Dim FSO As Object ...
    (microsoft.public.excel.programming)
  • Re: Is it possible to run DOS commands in Excel?
    ... No need to use the File System Object. ... >No need to shell out to Dos ... >and specify whether you want to wait for its termination. ... >Sub RunAndWait ...
    (microsoft.public.excel.programming)
  • Re: Set Page Number to One After Page Break
    ... I don't know how to specify which ... page on the worksheet should be set equal to p. ... Sub CheckForPageBreaks() ... Dim i As Integer ...
    (microsoft.public.excel.programming)