Bonjour

J'ai un problème d'impression sous windows 98. J'ai réalisé une application console avec BCB v4 sous WinXP. Le but est d'imprimer un texte cyrillique.

Lorsque je teste le programme sous WinXp, la page s'imprime correctement. Lorsque j'utilise windows 98, l'impression se fait mais la page est blanche.

Je ne comprends pas le problème, quelqu'un pourrai m'aider et m'expliquer celui ci?

Voici un bout de code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
#include <condefs.h>
#pragma hdrstop
#include <stdio.h>
#include <stdlib.h>
#include <vector.h>
#include <Printers.hpp>
 
[....]
 
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
    CreationResumeCYR();
    //Impression de l'image
    TPrinter *Print =new TPrinter;
    Print = Printer();
    Print->BeginDoc();
    Print->Canvas->StretchDraw( Rect(250, 100,6*Bitmap->Width, 6*Bitmap->Height)
                                , Bitmap);
    Print->EndDoc();
     AnsiString path = ExtractFileDir(ParamStr(0));
        //fait la copie de Canvas
    TRect Image;
    Image.Top=0;
    Image.Bottom =3*Bitmap->Height;
    Image.Right =3*Bitmap->Width;
    Image.Left=0;
    Bitmap->Canvas->CopyRect(Image,Bitmap->Canvas,Bitmap->Canvas->ClipRect);
    if (FileExists(path+"\\resume.bmp"))
    	DeleteFile(path+"\\resume.bmp");
    Bitmap->SaveToFile(path+"\\resume.bmp");
    return 0;
}
Merci beaucoup pour votre aide