Our Print Preview

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Our Print Preview

Post by Pablo César »

Hola a todos,

Dejo aqui registrado un bug que ya se lo pasé a Claudio y que será solucionado por él mismo.
Al mismo tiempo sirve de referencia para aquellos que se encontron con esta misma situación.

Me parece que hay algo estraño en la funcion _HMG_PRINTER_SavePages.

Tomé como ejemplo C:\hmg.3.4.0\SAMPLES\PrintSystem.

Cuando hago el preview, no existe ningun archivo metafile en la carpeta corriente, pero scuando entro en la opcion de grabar y mismo que no selecione extension alguna. Es decir, cancelo la seleccion de tipo de archivo, entonces el PrintView me está grabando archivos metafiles con el nombre "_0001", "_0002"... (sin extension alguna).

Lo normal seria que deberia no grabar archivo alguno cuando es cancelado la selecion de formato (selecciona de extension de archvio para salida). O entonces deberia grabar el archivo metafile siempre que sea ejecutado con opcion de Print Preview y caso el argumento [ cPath ] sea válido en el parámetro <FullFileName> del SAVEAS.

Por favor ver la imagen abajo del DOC:
Screen1.png
Screen1.png (42.57 KiB) Viewed 5626 times
Si no se elige nada, no deberia grabar nada o grabarlo al menos con la nomenclatura de archivo con el siguiente formato: nombre_de_módulo_0001.EMF... para que se pueda ser visualizado en el futuro sin tener que reprocesar nada. Esto de poder visualizar los archivos EMF pre-grabados, fué presentada esta solucion en: EMF Viewer

Image
Hi all,

I leave here registered a bug which also has been reported to Claudio and he said be check and solved.
At the same time, this serves as a reference for those who encountered with this same question.

I think there's something strange in the function _HMG_PRINTER_SavePages .

I took as an example C:\hmg.3.4.0\SAMPLES\PrintSystem.

When I do the preview, there is no metafile file in the current folder, but sWhen entered the option of recording and no selecione same as any extension. That is, I cancel the selection of file type, then the recording PrintView me metafiles files named "_0001 This", "_0002" ... (without extension).

It would be normal that should not record any file when it is canceled selecion format (extension of archvio selected for output). Or then you should record the metafile whenever executed with option to Print Preview and if the argument [ cPath ] be valid in parameter <FullFilename> of SAVEAS.

Please see DOC image below:
Screen1.png
Screen1.png (42.57 KiB) Viewed 5626 times
If nothing is selected, it should not record anything or be saved metafile with following nomenclature: App_Name_0001.EMF.. so it can be viewed in the future without having to reprocess at all. This question of be displayed existing EMF files, was presented this solution at: EMF Viewer

Keeping you informed,

Best Regards,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply