OVH Cloud OVH Cloud

Help PrintOut Excel2000 and Excel97

15 réponses
Avatar
Gérard Berlandier
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel 97 it
does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard

10 réponses

1 2
Avatar
Clément Marcotte
Un autre Français trop paresseux pour écrire en français.

fr = FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS.

"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard




Avatar
Gérard Berlandier
Tiens donc !
"Clément Marcotte" a écrit dans le message
de news:
Un autre Français trop paresseux pour écrire en français.

fr = FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS.

"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard







Avatar
Clément Marcotte
Et pis in VBA les comments ne sont pas supposed aller dans les lines
d'instructions et les comments pour being considérés comme des
comments doivent being précédés by apostrophes.


"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard




Avatar
Gérard Berlandier
Il y a des fois où il vaut mieux se taire ...
Qui a parlé de VBA ???
Par ailleurs toute chose etant égale somme toute ...
C'est du Visual C++ mais ce n'est pas l'objet du débat

"Clément Marcotte" a écrit dans le message
de news:
Et pis in VBA les comments ne sont pas supposed aller dans les lines
d'instructions et les comments pour being considérés comme des
comments doivent being précédés by apostrophes.


"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard







Avatar
Clément Marcotte
Et pis t'as just to check dans l'help de VBA Office 97 if printout has
les mêmes paramètres. If le printout de VBA Office 97 has not les
mêmes arguments you have juste à write 2 routines different et à
caller la good avec une compilation conditional.

#if vba6 then
the routine actual
#else
the routine pour Office 97
#end if


"Gérard Berlandier" a écrit dans le
message de news:
Tiens donc !
"Clément Marcotte" a écrit dans le
message

de news:
Un autre Français trop paresseux pour écrire en français.

fr = FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS,


FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS,


FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS, FRANÇAIS,
FRANÇAIS.



"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use
Excel



97 it
does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard











Avatar
Clément Marcotte
Habituellement, maudit pédant, Excel marche avec VB - VBA. Et pis si
t'es pas content, il y a un paquet de forums anglophones.


"Gérard Berlandier" a écrit dans le
message de news:%23dyJ0$
Il y a des fois où il vaut mieux se taire ...
Qui a parlé de VBA ???
Par ailleurs toute chose etant égale somme toute ...
C'est du Visual C++ mais ce n'est pas l'objet du débat

"Clément Marcotte" a écrit dans le
message

de news:
Et pis in VBA les comments ne sont pas supposed aller dans les
lines


d'instructions et les comments pour being considérés comme des
comments doivent being précédés by apostrophes.


"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use
Excel



97 it
does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard











Avatar
Clément Marcotte
http://msdn.microsoft.com/library


"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard




Avatar
Clément Marcotte
Désolé, je n'avais pas vu l'autre question en français.


"Gérard Berlandier" a écrit dans le
message de news:
Can you help me for this problem.
When I use Excel 2000 (or 2002), it works fine, but when I use Excel
97 it

does'nt work : I have a MessageBox with "Member not found".
The Code is :
oBook.PrintOut(
COleVariant(From), // From
COleVariant(To), // TO
vTrue, // copies
vTrue, // Preview
COleVariant(printer), // printer
vFalse, // print to file
vFalse, // collate
vOpt // name of file to print
);

Thank you for help
Gerard




Avatar
Pierre CFI [mvp]
C'était sa premiére intervention, vu l'accueil, ce sera sa derniére....bravo

--
Pierre CFI



Avatar
sabatier
peut-être, pierre, mais je me pose la question de l'intérêt à reposer en
anglais une question déjà posée en français sur un forum francophone...
jps

Pierre CFI [mvp] a écrit:
C'était sa premiére intervention, vu l'accueil, ce sera sa derniére....bravo

--
Pierre CFI





1 2