Hello Manuel, now I get: Error: Unresolved external '_GlobalAllocPtr' referenced from C:\WINHOTEL_ENTWICKLUNG_2021\XREPORT\RELEASE\PRINTDC.OBJ Error: Unresolved external '_GlobalFreePtr' referenced from C:\WINHOTEL_ENTWICKLUNG_2021\XREPORT\RELEASE\PRINTDC.OBJ Is it a problem, but I use ...
Hello Manuel, Thank you for your help. Unfortunately, I am not familiar with C functions. I have inserted your code into printdc.c and integrated this file into my project. I get the following error message: Error E2188 C: \ FWH \ source \ winapi \ printdc.c 1228: Expression syntax ...
... 1, 0 ); hb_retni( prnSetOrientation( short dmOrientationNew ) );} Te recuerdo que lo tienes que añadir a printdc.c de FWH No lo compilo por lo que si hay errores y no lo sabes resolver dimelos
Can we have longer TPrinter document name, please? From printdc.c: char szDocName[ 32 ]; int iLen = MIN( 31, hb_parclen( 2 ) ); 64 should be enough: char szDocName[ 64 ]; int iLen ...
... with thick fonts for titles, etc. In other cases normal text drawing functions/methods serve the purpose. Parameters 1. hDC. Please do not use PrintDC 2. Text. Can be ANSI/Unicode and can be multi-line 3. aRect. { nTop, nLeft, nBottom. nRight } pixels 4. hFont ( GDI font handle ) eg: oFont:hFont ...
In the source printdc.c in function HB_FUNC( PRNDUPLEX ) // ( nValue ) --> nOldValue should be added the line if (pDevMode->dmFields & DM_DUPLEX) to set any nValue only if the duplexprint for the printer is present. ...
Buenos días amigos, estoy teniendo un problema con la función PrinterDCFromName() que viene definida en printdc.c HB_FUNC( PRINTERDCFROMNAME ) // ( cDriver, cModel, cPort ){ LPDEVMODE lpDevMode; lpDevMode = (LPDEVMODE) GlobalLock( pd.hDevMode ...
Antonio, can you add this code to printdc.c? Maybe it is for some people useful. HB_FUNC( ISCOLORPRINTER ){ LPDEVMODE lpDevMode; PrinterInit(); lpDevMode = (LPDEVMODE) ...
Antonio, yes, many years ago we made some modifications to printdc.c and since then we used our own one. Now I reprogrammed some of my sourcecode to become fully compatible to the standard printdc.c and with these modifications I could abandon the old ...
Enrico Maria Giordano wrote:It is PrinterSetup() not PrintSetup().
EMG
But it was PrnSetup in our own printdc.c. It worked until now. But for better compatibility I now made an own function in my PRG's and am able to use the standard printdc.c now. So the matter is resolved. Thanks for your efforts
Antonio (and others): now I tried to use the original printdc.c (as I don't include my own printdc.c anymore) and a strange thing happens: nothing happens, when I call Printsetup(). Usually a printer setup dialog should open, but the program rusn on ...
Antonio, it's a modified printdc.c, which we use now for several years, this is the code. As I didn't write it myself, I'd appreciate your help :roll: #include <WinTen.h>#include <Windows.h>//#include <Print.h>#include ...