Applies To:
  • CitectSCADA  5.xx, 6.xx, 7.0

Summary:
The page print button in the CSV_include template doesn’t support multi language.  
The text shown in the popup when you click on the print page button is always in English.

Solution:

The button is calling the CSV_Nav_PagePrint function. This function does not have @(……) to enable the substitution to another language.

Copy the following function into your project and call this function instead of CSV_Nav_PagePrint when you click on the button in the template. You will of course also have to add the translation of “Print” and “Print current Page” in the corresponding language dbf file.

STRING msPrintPage;
STRING msPrinter;
STRING msPrinterDflt = "LPT1:";
STRING msPrintPageDflt = "";

INT FUNCTION CSV_Nav_PagePrint2()
STRING
sPrintPage;
INT iError;

IF msPrintPage = ""THEN 
    
msPrintPage = ParameterGet("Navigation","PrintPage", msPrintPageDflt);
END

sPrintPage = DspGetEnv("PrintPage");

IF sPrintPage = ""THEN 
    
sPrintPage = msPrintPage;
END

IF sPrintPage <> ""THEN 
    
iError = _CSV_Nav_ProcessMenuAction(sPrintPage);
ELSE 
    
IF msPrinter = ""THEN 
        
msPrinter = ParameterGet("Printer","Port",msPrinterDflt); 
    
END 

    IF
CSV_MessageBox(StrToLocalText("@(Print)"),StrToLocalText("@(Print Current Page)"),1+32)=0 THEN 
        
WinPrint(msPrinter,0,0,0); 
    END
END

RETURN 0;

END

 

Keywords:
 

Attachments