Geniais Soluções em Informatica
Ronaldo Batista Lima
011-99154-9291
email : gen...@uol.com.br
| Ronaldo B Lima <ronald...@uol.com.br>: Mar 29 03:34PM -0300 Ola colega eu uso a ide do Walter Formigoni para compilar meus projetos, eu acho que deve estar havendo algum conflito de LIBs. Eu costumo complicar com a opcao "tradicional" e assim tenho que incluir as libs em preferences. Eu testei compilando com a opcao hbmk2, eo problema nao ocorreu, porem a compilacao na IDE com a opcao hbmk2 é muito demorada, impraticavel, uma compilacao demorou 3 horas. compilando em modo "tradicional" demora de 1 a 3 minutos. observando o codigo de savepdf.prg ha uma linha : cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ), sendo que a funcao hb_FNameName, remove o path, devolvendo o nome do arquivo puro, e ai é que esta o problema, pois ao testar If file(cimageFile), nao contem o caminho de cimagefile, e entao ocorre o problema. Nao adianta eu alterar esse codigo pois faz parte da lib. Obrigado pela ajuda Hello Friend I use Walter Formigoni's ide to compile my projects, I think there must be some conflict of LIBs. I tend to complicate it with the "traditional" option and so I have to include the libs in preferences. I tested compiling with the hbmk2 option, and the problem did not occur, however the compilation in the IDE with the hbmk2 option is very time consuming, impractical, a compilation took 3 hours. compiling in "traditional" mode takes 1 to 3 minutes. looking at the code of savepdf.prg there is a line: cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ), and the function hb_FNameName, removes the path, returning the name of the pure file, and that's where the problem is, because when testing If file(cimageFile), it doesn't contain the path from cimagefile, and then the problem occurs. It's no use me changing this code because it's part of the lib. Thank you for your help Geniais Soluções em Informatica Ronaldo Batista Lima 011-99154-9291 email : gen...@uol.com.br De: "Pierpaolo Martinello" <pier.ma...@gmail.com> Enviada: 2022/03/27 16:14:44 Para: ronald...@uol.com.br Cc: minigu...@googlegroups.com Assunto: Re: [harbourminigui] Re: Miniprint2 enhancements Hi Ronaldo, i have just tried with success a pdf export with a my important job. It would take a piece of your program to uncover the problem. Oi Ronaldo, acabei de tentar com sucesso uma exportação de pdf com um meu importante trabalho. Seria preciso um pedaço do seu programa para descobrir o problema. BR -- Pierpaolo Martinello IW1CUY Ham Radio From Biella Italy Linux User 177880 Il giorno dom 27 mar 2022 alle ore 17:44 Ronaldo Geniais <ronald...@uol.com.br> ha scritto: I keep getting the PAGE NOT FOUND warning when trying to save to PDF in HBPRINTER and MINIPRINT2. analyzing the code in savepdf.prg that is located in minigui\souce\hbprinter and minigui\source\miniprint2 line 108/113 cIMAGEFILE doesn't seem to contain the path of the generated file "IMG" I managed to locate the generated file in the executable folder of my program, but the code above doesn't seem to find the way, I don't know where I'm going wrong, because in the examples in the samples folder when I compile, they work normally. IF ! File( cImageFile ) MsgExclamation( "Source " + cImageFile + " not found!" + hb_eol() + "Can't continue...", "Page not found!" ) lRet := .F. EXIT ENDIF the xxx.png file is created in the application's executable folder, but the function that converts to pdf seems to look for it in another folder Sem título.png Em segunda-feira, 7 de fevereiro de 2022 às 11:30:11 UTC-3, pete....@gmail.com escreveu: Hello team, Miniprint2 is a nice small and cute print library. Like everything, it would be even better if we could: - export/save to pdf (currently only .emf format is supported) - handle better the container window (maximize/resize) - granually zoom stepping (on preview) thanks for any opinions? regards, Pete -- Visit our website on http://www.hmgextended.com/ or https://www.hmgextended.org/ --- You received this message because you are subscribed to a topic in the Google Groups "Harbour Minigui" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/minigui-forum/BApC5myyr84/unsubscribe. To unsubscribe from this group and all its topics, send an email to minigui-foru...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/a37ebbb2-1a81-485a-a109-1be1acf7d992n%40googlegroups.com. |
| Pete <pete....@gmail.com>: Mar 29 01:41PM -0700 Hi Ronaldo, On Tuesday, 29 March 2022 at 21:34:52 UTC+3 Ronaldo Geniais wrote: > cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ), > and the function hb_FNameName, removes the path, returning the name of > the pure file, Yes, it's so "by design", and that's exactly what the function is made to do there... > and that's where the problem is, No, there is no problem there... > because when testing If file(cimageFile), it doesn't contain the path We do not want it to contain any path! `cImageFile` is a temporary filename to be used by `BT_BitmapSaveFile()` to save the original .emf as .png That file, for shake of simplicity, is created in the curent working directory (normally the directory of the executable) Now, if you keep getting the "... not found" message, then either the file fails to be created by `BT_BitmapSaveFile()` (could it be due to limited write access of the folder?) or some kind of path change/redirection is happening somewhere in the code, but that's only "a shot in the dark". > It's no use me changing this code because it's part of the lib. I will try to add some error handling in that point of _CreatePdf() function Something like: If ! lRet := BT_BitmapSaveFile( hBitmap, cImageFile, BT_FILEFORMAT_PNG ) MsgExclamation( "Image file: " + cImageFile + " cannot be saved!", "Warning" ) exit endif Meanwhile, you could try it yourself and see if it helps to locate the cause of problem. regards, Pete |
| You have received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to minigui-foru...@googlegroups.com. |
Pete
in a way I even managed to isolate the problem,
as I said I use Roberto formigone's ide,
there are two ways to compile it (two buttons)
being a "traditional bath processing"
and another "Harbours official make program (hbmk2)".
When I compile in the first mode, it gives libs errors, even though I'm referencing the libs
When I compile in the second mode, there are no errors, and everything works fine.
The problem is that the compilation with the second mode is very slow, it takes a long time,
in the first mode that I always used before this new version there were no compilation errors.
Maybe something is missing to update in the traditional way compilation bath.
" I would not recommend it to be used as real IDE, though. There are alternatives..."What are your suggested alternatives?
--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/470e420d-a26d-44f4-9f91-1a6c8eaffccdn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/CACbUD6TuirTNwOD%3DN6j_AaidkQdL%2Bh6MHwhYx%2B%3D5AKcx8aWEdw%40mail.gmail.com.
I had used Andy's xMate years ago.
A comment: your link to his yahoo page is dead.
Just now thinking of getting back into it and reviving a commercial application that ran on a Windows CE hand held and a PC for the miniGui part. That client has just recently made contact again. But my wife is not keen on the thought.
Hola master!!!
¿Cómo puedo obtener una de las cadenas por ejemplo "01 - comprobante emitido con errores con relación" de la función INputWindowEx
Gracias
Este es mi código