topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
wBrowse Hernan x (xHarbour 1.2.1 + FWh 10.6 ) | Estou tentando recompilar minha aplicacao utilizando:
FiveWin 10.6 + xHarbour Compiler build 1.2.1 (Simples) <Rev. 6633>
estou encontrando um unico problema com a wBrowse do Hernan:
xLINK: error: Unresolved external symbol '__param referenced from (wBRWLINE.obj)'.
xLINK: error: Unresolved external symbol '__reta referenced from (wBRWLINE.obj)'.
Ja tentei recompilar a wBrwLine.c alterando _param() para HB_param() e _reta() para HB_reta() sem sucesso...
Alguem sugere alguma correcao ou teria a wBrwLine.Obj ja compilada nesta versao para me enviar ?
Mui grato... |
wBrowse Hernan x (xHarbour 1.2.1 + FWh 10.6 ) | Use this version,
I think it will work properly. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
<!-- m --><a class="postlink" href="http://www.box.net/shared/iqiml7jff3">http://www.box.net/shared/iqiml7jff3</a><!-- m --> |
wBrowse Hernan x (xHarbour 1.2.1 + FWh 10.6 ) | Mui grato...
funcionou... |
wBrowse de Hernan | Hola Amigos:En el Brw de Hernan modificado por Rossine y usando RECURSOS, el Brw se pinta en nTop=0 y nLeft=0 aunque en el recurso esté en otra posición.He buceado en el Brw buscando el momento en que se toman los datos del recurso, no lo tiene cuando hace el ReDefine, y cuando entra en el método Default ya lo tiene, aparentemente es en el Super:Iniciate (Tcontrol) pero ahí me pierdo. Lo he comparado con el Brw de Fw pero no encuentro aparente motivo para esto. En el Brw original de Hernan sale bien. Tampoco encuentro nada en el foro, parece que a nadie le pasa esto. Qué tengo que modificar para que el Brw se pinte tal y como está en el recurso?Muchas gracias por anticipadoJorge Vargas |
wBrowse de Hernan | Jorge,Prueba este código y dinos que te aparece:ACTIVATE DIALOG oDlg ; ON INIT MsgInfo( oBrw:nTop ) |
wBrowse de Hernan | Hola Antoniomuchas gracias por responder.en msginfo(oLbx:nTop) sale 0, tambien en nLeftSaludosJorge Vargas |
wBrowse de Hernan | Pruébalo asi:ACTIVATE DIALOG oDlg ; ON INIT MsgInfo( WndTop( oBrw:hWnd ) ) |
wBrowse de Hernan | AntonioSale 0Gracias por tu tiempoJorge Vargas |
wBrowse de Hernan | Jorge,Prueba esto y veamos si cambia de posición:ACTIVATE DIALOG oDlg ; ON INIT WndTop( oBrw:hWnd, 200 ) |
wBrowse de Hernan | Hola AntonioMovió el oLbx bastante abajoQue sigue ahora?. Muchas gracias por tu ayudaSaludosJorge Vargas |
wBrowse de Hernan | SE ME OCURRE QUE EL ARCHIVO DE RECURSO DEBE TENER ALGO MALO,EDITALO COMO TEXTO Y BUSCA EL DICHOSO LISTBOX HABER EN QUE POSICION TE ALMACENÓNOSE, DIGO. |
wBrowse de Hernan | PUEDES PONER EL CODIGO DEL FUENTE?? |
wBrowse de Hernan | EN EL .RC DEBE DECIR ALGO COMO: CONTROL "", 401, "TWBrowse", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 5, 15, 338, 182DONDE LAS COORDENADAS DEL PUNTO DE INICIO SON 5,15ESPERO TE SIRVA DE ALGO |
wBrowse de Hernan | Hola ÁngelDiscúlpame por la demora en responder, el hecho es que con la solución que me dio Antonio continué trabajando. Tenia que entregar un programa.La línea del recurso es ésta:CONTROL "", 174, "TWBrowse", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 54, 120, 210, 100Pero aun así aparecía en la posición 0,0; inclusive en el ejemplo original del wBrowse no pude hace que funcione correctamente con recursos.Con el remiendo:On INIT (WndTop(oLbx:hWnd,240), WndLeft(oLbx:hWnd,120) seguí con la obra.Lo que me extraña es que nadie mas ha reportado este caso en el foro. O es que yo tengo una versión que no funciona bien.Ahora quiero usar un Get con Spinner en recurso y no salen las flechas, pero con codigo si sale. Muy extraño. Usas tu el wBrowse de Hernan modificado por Rossine?, no tienes estos problemas?Agradezco mucho tu atención , tu respuesta y tu tiempo.SaludosJorge Vargas |
wBrowse de Hernan | Saludos jvargas.. yo tambien he tenido el problema con twbrowse de Rossine, te lo pinta en el TOP y por el tiempo no me pude menter de lleno en el problema pero vi esto en el foro y me auxilio un póco, aunque no pude cambiar o corregir el problema espero que tersirva y si llegas a tener la soucion que nos la compartas gracias viendo un poco las modificaciones el error me parece que esta a la hora de calcular las coordenadas en el metodo DEFAULT()if ::nWidth = NIL && Somente para REDEFINES && By Rossine::nTop := aRect[1] && By Rossine::nLeft := aRect[2] && By Rossine::nHeigth := ( aRect[3] - aRect[1] ) / 2 && By Rossine::nWidth := (( aRect[4] - aRect[2] ) / 2 ) + VSCROLL_WIDTH && By Rossine::nBottom := aRect[3] && By Rossine::nRight := aRect[4] && By Rossineendif |
wBrowse de Hernan | QUE RARO <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> , A MI ME HA TRABAJADO SIEMPRE BIÉN!! |
wBrowse de Hernan | Hola TomafaGracias por tu pista.Llegué a que ::nWidth es NIL y que aRect{1] y aRect[2] tienen 0 pero la entradas 3 y 4 de aRect tienen 196 y 416 respectivamente.La linea en el RC tieneCONTROL "", 174, "TWBrowse", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 54, 120, 210, 100Al parecer aRect := GetClientRect( ::hWnd ) no funciona.Lamento decir que mis conocimientos sobre Métodos son casi nulos y no puedo seguir.Ojalá que alguien nos de un poco mas de ideas por donde bucear.Muchas gracias por la ayuda.Hola Ángel Podrías, por favor, enviarme a mi correo tu wBrowse de Rossine?. Quiero compararlos.GraciasSaludos a ambosJorge Vargas |
wBrowse de Hernan | esta parte la utiliza Rossine para calcular el titulo, cuando se pinta el browse lo pone en el top 0 por el valor que lleva ahora como se puede saber en donde se pinta el caga o panel del browse para saber en donde lo coloca if ::nWidth = NIL && Somente para REDEFINES && By Rossine ::nTop := aRect[1] && By Rossine ::nLeft := aRect[2] && By Rossine ::nHeigth := ( aRect[3] - aRect[1] ) / 2 && By Rossine ::nWidth := (( aRect[4] - aRect[2] ) / 2 ) + VSCROLL_WIDTH && By ::nBottom := aRect[3] && By Rossine ::nRight := aRect[4] && By Rossine endifantonio |
wBrowse de Hernan | Estoy compilando un aplicativo viejito con FW806 con la libreria Wbrowse de Hernan pero siempre toma el Wbrowse de Fivewin , cual debe ser el orden correcto de las librerias para que tome la de Hernan y no la de Fivewin.F:\Lib\3dharbour\Xfwh806\Twbrwx.lib === la de HernanF:\Lib\3dharbour\Xfwh806\btngetx.lib === la btngetF:\Lib\3dharbour\Xfwh806\Audisys.lib === la miaF:\FWH806\lib\Fivehx.libF:\FWH806\lib\Fivehc.liby el resto de libreriasEl errorApplication=========== Path and name: F:\Proyectos Terceros\Escanografia\Radiscan\CRYS32.exe (32 bits) Size: 2,765,312 bytes Time from start: 0 hours 0 mins 4 secs Error occurred at: 2008.10.30, 17:50:57 Error description: Error BASE/1005 Message not found: TWBROWSE:_NCLRNFBACKStack Calls=========== Called from: tobject.prg => TWBROWSE:ERROR(172) Called from: tobject.prg => TWBROWSE:MSGNOTFOUND(205) Called from: tobject.prg => TWBROWSE:_NCLRNFBACK(0) Called from: SetupCol.prg => COLBRO(592) Called from: CREAEXA.PRG => TESTUDIO:WBROWSE(90) Called from: CREAEXA.PRG => (b)TESTUDIO:TESTUDIO(34) Called from: => TESTUDIO:ACTIVATE(0) Called from: CREAEXA.PRG => CREAEXA(17) Called from: CRYS.PRG => (b)MENU_BOTT(328) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(0) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: CONTROL.PRG => TCONTROL:HANDLEEVENT(0) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(0) Called from: WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0) Called from: CRYS.PRG => MAIN_(148)Jose David |
wBrowse de Hernan | Resuelto,Era el nombre del directorio demasiado grande. |
wNetGetConnection() issue | Hi Antonio
wNetGetConnection( z: ) returns the correct UNC path for the specified drive but the returned value (which is correct) has a whole lot of garbage chrs appended to it, which I have to remove by finding the first Chr(0) in the returned value and substringing to the chr before that.
Using xHb and fWh version from +- Oct 2006
Regds
Peter |
wNetGetConnection() issue | Peter,
Its strange because the C source code uses lLen to trim it:
WNetGetConnection( hb_parc( 1 ), ( char * ) bBuffer, &lLen );
hb_retclen( ( char * ) bBuffer, lLen );
So it looks as a Windows API wrong behavior. But you got a good workaround <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
wNetGetConnection() issue | should iLen be DWORD ? |
wNetGetConnection() issue | lLen is an unsigned long wich it is like a DWORD
[code:1aynil7w]
function Main()
MsgInfo( Test() )
return nil
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
HB_FUNC( TEST )
{
hb_retl( sizeof( unsigned long ) == sizeof( DWORD ) );
}
#pragma ENDDUMP
[/code:1aynil7w]
It shows .T. |
wNetGetConnection() issue | you are right. sorry. i shdnt have bothered you with that.
actually long time back wnetgetuser() function was having the same problem. I used to have a wrapper function truncating upto chr(0). later it got solved on its own. similar problem exists now with this function. |
wNetGetConnection() issue | NageswaraRao,
You are welcome <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
wNetGetUser | When I attempt to use wNetGetUser() I get a link error:
xLINK: error: Unresolved external symbol '_WNetAddConnectionA'.
xLINK: error: Unresolved external symbol '_WNetGetUserA'.
xLINK: error: Unresolved external symbol '_WNetConnectionDialog'.
xLINK: error: Unresolved external symbol '_WNetDisconnectDialog'.
xLINK: error: Unresolved external symbol '_WNetGetConnectionA'.
xLINK: error: Unresolved external symbol '_WNetCancelConnectionA'.
xLINK: fatal error: 6 unresolved external(s).
Am I missing a Lib, or how do you get this to work?
Byron Hopp... |
wNetGetUser | Harbour or xHarbour
You can add the libraries you use? |
wNetGetUser | Byron
WNetGetuser() is a FiveWin function which I use all the time ..
Here are the first 3 libs which I link using xHarbour and borland 582
%C_LIB_INSTALL%\c0w32.obj=1 // borland
C:\FWH1203\LIB\Fivehx.lib=2
C:\FWH1203\LIB\Fivehc.lib=3
If you can not get WNetGetUser to work you can link in Net.c from the source\Winapi folder .. or you can use xHarbours function NetName(.T.) to get your Logged in Users name.
Rick Lipkin |
wNetGetUser | [code=fw:pt1rfawr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> lFichSub := .T.<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oFont, oIcon, oSay, aoBt<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>, aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">8</span> <span style="color: #000000;">]</span>, aoSy<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">LOCAL</span> nCol_Rfe := <span style="color: #000000;">0</span>, nCol_Des := <span style="color: #000000;">0</span>, nCol_Sec := <span style="color: #000000;">0</span>, nCol_Fam := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> nCol_Mar := <span style="color: #000000;">0</span>, nCol_Pre := <span style="color: #000000;">0</span>, cFamilia := <span style="color: #000000;">0</span>, nDescto := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> nTotal := <span style="color: #000000;">0</span>, nActual := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> cFileExcel := <span style="color: #ff0000;">"Excel texto? a tu modo..."</span> <span style="color: #B900B9;">// ????</span><br /> <span style="color: #00C800;">LOCAL</span> VERSION := <span style="color: #000000;">[</span>MI PROGRAMA EN TESTE <span style="color: #00C800;">FOR</span> FIVEWIN AND XHARBOUR<span style="color: #000000;">]</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD <span style="color: #B900B9;">//UnderLine</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">100</span> ;<br /> <span style="color: #0000ff;">TITLE</span> VERSION <span style="color: #0000ff;">ICON</span> oIcon COLORS CLR_BLACK, CLR_WHITE<br /><br /> @ <span style="color: #000000;">11</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> aoSy<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> cFileExcel <span style="color: #0000ff;">PIXEL</span> BORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>,<span style="color: #000000;">24</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">86</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"COLUMNAS:"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Refer"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Rfe <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> COLORS CLR_BLACK, CLR_HCYAN <span style="color: #B900B9;">// Mira el foco aca...</span><br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">190</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Descri"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">190</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Des <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Seccion"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Sec <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">310</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Familia"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">310</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Fam <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">370</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Marca"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">370</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">5</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Mar <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">430</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Precio"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">430</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nCol_Pre <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ 99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">120</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Familia"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">140</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">7</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cFamilia <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">120</span>,<span style="color: #000000;">230</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Descuento"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">140</span>,<span style="color: #000000;">230</span> <span style="color: #0000ff;">GET</span> aoGt<span style="color: #000000;">[</span> <span style="color: #000000;">8</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> nDescto <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">" 99.99"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> aoBt<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Fichero Excel"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">24</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> cFileExcel := cGetFile32<span style="color: #000000;">(</span> <span style="color: #ff0000;">"*.xls"</span>, <span style="color: #ff0000;">'Abrir fichero'</span>, , GetCurDir<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, .F., ,<span style="color: #ff0000;">"*.xls"</span> <span style="color: #000000;">)</span>, ;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> cFileExcel <span style="color: #000000;">)</span>, , <span style="color: #000000;">(</span> aoSy<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, lFichSub := .T. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">320</span>, <span style="color: #000000;">40</span> METER oMeter <span style="color: #0000ff;">VAR</span> nActual TOTAL nTotal <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">555</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">90</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> ;<br /> BARCOLOR nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">120</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">400</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BUTTON</span> aoBt<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Generar"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">ACTION</span> ImportaDat<span style="color: #000000;">(</span> cFileExcel, oMeter, @lEnd <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">WHEN</span> lFichSub .AND. <span style="color: #0000ff;">Asc</span><span style="color: #000000;">(</span> AllTrim<span style="color: #000000;">(</span> cFileExcel <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /><br /> @ <span style="color: #000000;">400</span>,<span style="color: #000000;">496</span> <span style="color: #0000ff;">BUTTON</span> aoBt<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Sa&lir"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Usuario = "</span> + WNetGetUser<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">" - "</span> + FWVERSION TIME DATE KEYBOARD<br /><br /> SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> oFont<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// para teste solamente - borrar</span><br /><span style="color: #00C800;">FUNCTION</span> ImportaDat<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:pt1rfawr] |
wait dialog | I'd like to have a dialog with a TAnimate object (example the copy files di windows) during massive dbf operations. The animation doesn't start, the only way to make it move is placing various sysrefresh() during dbf operations. Is there any other way?
this is the code:
[code:3jjoesea]
#include "fivewin.ch"
function main()
local a
attendi(.t.)
inkey(3) // this way doesn't move
attendi(.f.)
attendi(.t.)
for a=1 to 200 // this way it moves!!!
inkey(.01)
sysrefresh()
next
attendi(.f.)
return nil
FUNCTION Attendi( lStatus )
STATIC oDlg
LOCAL oAnimate
IF lStatus .AND. oDlg = NIL
DEFINE dialog oDlg resource "Main"
oAnimate = TAnimate():REDEFINE( 160, oDlg )
ACTIVATE dialog oDlg NOWAIT centered ;
ON INIT ( , oAnimate:CopyFiles(), oAnimate:Play() )
ELSE
oDlg:END()
oDlg = NIL
ENDIF
RETURN NIL
[/code:3jjoesea]
regards
riccardo |
wait dialog | Riccardo,
SysRefresh() is required in order to let Windows process pending messages. |
waitrun por q no detenie la ejecucion | Amigos que funcion puede detener mi sistema y continuar una vezque se halla cerrado la aplicacion externa que llamoAqui en el ejemplo llamo al navegador k-Meleon pero este se cargay sigue mi aplicacion .WAITRUN("C:\Archivos de programa\K-Meleon\k-meleon.exe <!-- m --><a class="postlink" href="http://www.aduanet.gob.pe/aduanas/informao/tgteralm.htm">http://www.aduanet.gob.pe/aduanas/informao/tgteralm.htm</a><!-- m -->",0)MSGALERT("DALE CLIC EN ACEPTAR DESPUES DE HABER GUARDADO LA PAGINA","PRIMERO QUE CARGE LA PAGINA")Gracias por la Ayuda |
waitrun por q no detenie la ejecucion | Intente con:SysWait( 0 )Saludos. |
waitrun por q no detenie la ejecucion | Vladimir, tengo la misma necesidad que tu y no he visto como resolverlo,yo quiero que mi sistema deenga su ejecucion, cuando activo el waitrun y hasta que se cierre este programa vuelva a ser funcionabel, he logrado minimizar, y va bien, pero el detener su ejecucion no he podido, lo hago asi:FUNCTION ALC4200(oItem,nBtn,oToolBar) DbCloseall() oWnd:Minimize() cVar:=Accesos(ProcName()) IF !cVar[1] RETURN NIL ENDIF WAITRUN("miprogexterno.exe",0)return nila ver si alguien nos echa la manitasalu2paco |
waitrun por q no detenie la ejecucion | Pues la verdad es que a mi me funciona magnificamente. El único cambio, que no sé si tendrá importancia, es que yo no indico el nCmdShow:WAITRUN( "pepito.exe") |
waitrun por q no detenie la ejecucion | Manuel tiene razón. Yo siempre lo he usado sin el último parámetro y hasta el momento todo bien.Saludos. |
warehouse management | Hello friends,
You can also use the interface of the scheduling system for warehouse management.
Here you can see a small warehouse with plastic boxes.
I am now searching for a switch which is in one of the boxes.
Best regards
Otto
[img:1myw58rl]https://mybergland.com/fwforum/lager.jpg[/img:1myw58rl]
[img:1myw58rl]https://mybergland.com/fwforum/lagerverwaltung.gif[/img:1myw58rl] |
warning C4049 | Boas
Quando compilo o meu PRG dá o seguinte WARNING.
meuprg(65536) : warning C4049 : Compiler Limit : Terminate line number emission.
- O Programa Funciona Normalmente será que poderá dar algum problema
que warning será este e que poderá acontecer. |
warning C4049 | It seems as your PRG has over 65535 source code lines and the compiler can't display the line number when compiling.
Anyhow it is just a warning so your appication should work fine.
It is advisable not to use so many source code lines in just one PRG. It is better to split your PRG into several ones for an easier maintenance of your application <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
warning LNK4088 and LNK4254 | Dear All
I'm Using xHarbour 0.99.71 + FWH 6.12 + VC++ 2005
I got a warning LNK4088: image being generated due to /FORCE option; image may not run
and lots of warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
How can I do for these warning messages
complile batch file is as following
=====================
@ECHO OFF
CLS
ECHO FiveWin for xHarbour .99.6 (MSVC++) November 2006 xHarbour development power
ECHO (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
set hdir=c:\xharbour2005
set vcdir=c:\VC8
set include=%vcdir%\include;%hdir%\include;%include%
set lib=%vcdir%\lib;%hdir%\vc\lib;%lib%
%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
%vcdir%\bin\cl -TP -W3 -c /GA %1.c
:ENDCOMPILE
IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1
echo %1.obj > msvc.tmp
echo ..\lib\Fivehmx.lib ..\lib\FiveHCM.lib >> msvc.tmp
echo %hdir%\lib\rtl.lib >> msvc.tmp
echo %hdir%\lib\vm.lib >> msvc.tmp
echo %hdir%\lib\gtgui.lib >> msvc.tmp
echo %hdir%\lib\lang.lib >> msvc.tmp
echo %hdir%\lib\macro.lib >> msvc.tmp
echo %hdir%\lib\rdd.lib >> msvc.tmp
echo %hdir%\lib\dbfntx.lib >> msvc.tmp
echo %hdir%\lib\dbfcdx.lib >> msvc.tmp
echo %hdir%\lib\dbffpt.lib >> msvc.tmp
echo %hdir%\lib\hbsix.lib >> msvc.tmp
echo %hdir%\lib\debug.lib >> msvc.tmp
echo %hdir%\lib\common.lib >> msvc.tmp
echo %hdir%\lib\pp.lib >> msvc.tmp
echo %hdir%\lib\pcrepos.lib >> msvc.tmp
rem Uncomment these two lines to use Advantage RDD
echo %hdir%\lib\ace32.lib >> msvc.tmp
echo %hdir%\lib\rddads.lib >> msvc.tmp
echo %vcdir%\lib\kernel32.lib >> msvc.tmp
echo %vcdir%\lib\user32.lib >> msvc.tmp
echo %vcdir%\lib\gdi32.lib >> msvc.tmp
echo %vcdir%\lib\winspool.lib >> msvc.tmp
echo %vcdir%\lib\comctl32.lib >> msvc.tmp
echo %vcdir%\lib\comdlg32.lib >> msvc.tmp
echo %vcdir%\lib\advapi32.lib >> msvc.tmp
echo %vcdir%\lib\shell32.lib >> msvc.tmp
echo %vcdir%\lib\ole32.lib >> msvc.tmp
echo %vcdir%\lib\oleaut32.lib >> msvc.tmp
echo %vcdir%\lib\uuid.lib >> msvc.tmp
echo %vcdir%\lib\odbc32.lib >> msvc.tmp
echo %vcdir%\lib\odbccp32.lib >> msvc.tmp
echo %vcdir%\lib\mpr.lib >> msvc.tmp
echo %vcdir%\lib\winMM.lib >> msvc.tmp
IF EXIST %1.res echo %1.res >> msvc.tmp
%vcdir%\bin\link @msvc.tmp /nologo /subsystem:windows /force:multiple /NODEFAULTLIB:LIBC
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
%1
GOTO EXIT
ECHO
rem delete temporary files
@del %1.c
@del msvc.tmp
:LINKERROR
ECHO * There are errors
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi髇 PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO The specified PRG %1 does not exist
:EXIT
===========================================
Anyone can help ?
Best Regards
Dixon Chu |
warning LNK4088 and LNK4254 | Dixon,
Those are just warnings that you can safely ignore |
warning w0002 ??? | Estoy compilando una aplicación y me sale este mensaje en varios módulos del programa
[code=fw:3lby4jlt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Warning W0002 Redefinition or duplicate definition <span style="color: #0000ff;">of</span> <span style="color: #00D7D7;">#define</span> c<br /> </div>[/code:3lby4jlt]
Aunque no altera el funcionamiento de la misma, me gustaría saber de que se trata. Compilo con harbour. Gracias
Saludos |
warning w0002 ??? | No tienes dos ó más funciones con el mismo nombre? |
warning w0002 ??? | Karinha, gracias por responder. No tengo funciones duplicadas. Parecería que el mensaje de error es que "#define c" está duplicado, pero no sé por donde empezar a buscar. De todas maneras es un error menor ya que la aplicación funciona perfectamente. Cuando tenga un poco de tiempo me pondré a investigar. Nuevamente gracias
Saludos |
warning w0002 ??? | Mira, porfa:
<!-- m --><a class="postlink" href="http://www.ousob.com/ng/53error/ng2caa.php">http://www.ousob.com/ng/53error/ng2caa.php</a><!-- m -->
salu2 |
warning w0002 ??? | Se usted compila asi:
[code=fw:gfsfy91e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />%hdir%\bin\harbour RPREVIEW /es2/m/n/a/w0 /i%fwhdir%\include;%hdir%\include /w /p RPREVIEW.C >> Erro.log<br /><br /><span style="color: #B900B9;">// Modifica el flag asi:</span><br /><br />%hdir%\bin\harbour TGET /m/n /i%fwhdir%\include;%hdir%\include /w0/p TGET.C >> Erro.log<br /><br />Salud2<br /> </div>[/code:gfsfy91e] |
warning w0002 ??? | Gracias Karinha por tu interés. Leí el link que pusiste, tendría que fijarme en cada archivo de preprocesamiento y ahora no lo puedo hacer por falta de tiempo, pero ya lo veré en cuanto me desocupe un poco. En cuanto a la modificación del flag de las warnings del compilador prefiero tenerlo activo para ver las variables no declaradas ( me pasa muy a menudo ). Nuevamente te agradezco por tu tiempo.
Saludos |
warnning message | What the cause behind error rw4002 :segment8-18 PRELOAD |
warnning message | Ehab,
Is it a brc32.exe error ? Please copy here the complete output. Thanks. |
warnning message | Compiling...
317K available
Compiling SITEX.PRG
Code size 22678, Symbols 2976, Constants 6794
ECHO is off.
Linking...
BLINKER : link was successful
SITEX.EXE (0.4 seconds)
* Application successfully built
ECHO is off.
Microsoft (R) Windows Resource Compiler Version 3.10
Copyright (C) Microsoft Corp. 1985-1992. All rights reserved.
RC: warning RW4002: Entry point segment 7 set to PRELOAD
RC: warning RW4002: Non-discardable segment 9 set to PRELOAD
RC: warning RW4002: Non-discardable segment 11 set to PRELOAD
RC: warning RW4002: Non-discardable segment 12 set to PRELOAD
RC: warning RW4002: Non-discardable segment 14 set to PRELOAD
RC: warning RW4002: Non-discardable segment 16 set to PRELOAD
RC: warning RW4002: Non-discardable segment 19 set to PRELOAD |
warnning message | Ehab,
Those are warning you can safely ignore. |
warnning message | Warning: Unable to perform incremental link - performing full link...
* Application successfully built |
warnning message | [quote="Ehab Samir Aziz":2mbh6fbm]Warning: Unable to perform incremental link - performing full link...
* Application successfully built[/quote:2mbh6fbm]
Congratulation!
( could really not resist <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->)
Detlef |
warnning message | Ehab,
Its ok, the linker says that its going to rebuild the entire EXE <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
was bedeutet das || | [url:1fnnl1oy]http://www.xbaseforum.de/viewtopic.php?f=32&t=7006[/url:1fnnl1oy]
[quote:1fnnl1oy]
von brandelh » Mi, 16. Jan 2013 15:33
Das ist die Syntax für einen CODEBLOCK !
Ein ARRAY wäre das: aVal := { "Wert1", 2, date() } // erzeugt ein Array mit 3 Elementen (String, num, Datum)
Bei einem CodeBlock wird || vorne angefügt, darin können sich Parameter befinden.
Beispiel
Code: Alles auswählen
bCode := { |cTxt| msgbox( cTxt ) } // durch direkte Eingabe wird der Codeblock direkt übersetzt und bCode referenziert ihn.
Eval( bCode, "Hallo Welt" ) // Eval() führt einen CodeBlock aus (=> 1. Parameter) und kann Parameter übergeben, hier "Hallo Welt".
Dieser Parameter wird dem codeblock übergeben und landet in dem Beispiel in cTxt.
Es gibt nun also eine MsgBox( "Hallo Welt" ) aus.
Codeblocks werden häufig eingesetzt um Aktionen für Clicks auf z.b. von PushButtons oder Menüs bereitzustellen.
Man kann einen Codeblock auch zusammenbauen und zur Laufzeit compilieren:
Code: Alles auswählen
cBlock := "{ |cTxt| msgbox( cTxt ) }" // es gehen auch sehr komplexe Sachen wie Werte für Suchanfragen.
bCode := &(cBlock) // ein Syntaxfehler in cBlock wird erst zur Laufzeit bemerkt
Eval( bCode, "Hallo Welt" ) // gleiches Ergebnis wie vorherGruß
Hubert
brandelh
Foren-Moderator
Beiträge: 9140
Registriert: Mo, 23. Jan 2006 20:54
Wohnort: Germersheim
Website Nach oben
--------------------------------------------------------------------------------
Re: was bedeutet das ||
von Tom » Mi, 16. Jan 2013 16:38
Etwas allgemeiner und zugleich spezieller gesprochen:
Zwischen den beiden senkrechten Strichen befinden sich die Parameter, die im Moment der Evaluierung an die Funktion im Codeblock übergeben werden (können). Hubert hat das schon mit diesem Beispiel gezeigt (ich habe die Variable "bCode" hier durch ihren Inhalt ersetzt):
Code: Alles auswählen
Eval( {|cTxt|msgbox( cTxt )}, "Hallo Welt" )
Hier wird erwartet, dass die Funktion im Codeblock (in diesem Fall "MsgBox") mindestens einen Parameter kennt. Der Codeblock nimmt diesen quasi entgegen, durch seine (Be)Nennung zwischen den ||. Würde dort nichts stehen, gäbe es einen Laufzeitfehler. Aus "Hallo, Welt" wird also im Moment der Evaluierung die Variable "cTxt", die an die Funktion übergeben wird.
Bei einem selbst gestalteten bzw. evaluierten Codeblock kann man da ziemlich beliebig vorgehen. Es gibt aber auch Codeblöcke, die von Objekten evaluiert werden, die wir benutzen. Dazu gehört beispielsweise der LbClick-Slot, den alle XbParts kennen, die von XbpWindow abgeleitet sind. Man kann ihn dazu verwenden, um für den Fall des Klicks mit der linken Maustaste ein zusätzliches oder abweichendes Verhalten zu programmieren. Was wir aber nur aus der Doku wissen: Dieser Codeblock wird mit drei Parametern evaluiert. Das heißt: Wenn wir ihn verwenden, können wir auf diese bis zu drei Parameter zugreifen, die ihm in diesem Moment gereicht werden. Der erste Parameter enthält die Position des Mauszeigers (der dritte enthält das Objekt, das die Methode besitzt):
Code: Alles auswählen
oXbp:LbClick := {|aPos|MsgBox("Mausposition: "+Var2Char(aPos))}
Wir haben hier also einen Codeblock gebaut, von dem wir wissen, dass er im Moment der Evaluierung mit drei (von denen wir hier nur einen verwenden) Parametern aufgerufen wird. Durch die Aufzählung zwischen den || stellen wir die Referenz auf diese Parameter her und benennen sie, deshalb können wir sie dann im eigentlichen Code des Codeblocks, hier also beim Aufruf der Funktion "MsgBox" verwenden. Statt "aPos" könnte dort auch an beiden Stellen "Heinz" stehen; "Heinz" enthielte trotzdem die Position des Mauszeigers. Aber ohne "aPos" oder "Heinz" könnte MsgBox nicht direkt auf die Mauskoordinaten zugreifen. Würde man diesen Code beispielsweise bei der Erzeugung eines Pushbuttons verwenden, würde dieser bei einem Klick zuerst die Mauskoordinaten anzeigen und dann seine Aktion ausführen.
Darüber, welche Slots/Callbacks welche Parameter zur Verfügung stellen, informiert die Xbase++-Dokumentation. Das ist in allen nutzbaren Varianten ein extrem mächtiges Hilfsmittel.Herzlich,
Tom[/quote:1fnnl1oy] |
ways to save report to a file and easily open | Hi,
One of our customers asked me if fwh app can offer a way to save a report to a file, email it to his customers and his customers can open the file and print it in a easily way.
Now they print out then send a fax to his customer, but fax not 100% reliable.
Best regard!
Shuming Wang |
ways to save report to a file and easily open | Shuming:
Try EasyPreview from
<!-- w --><a class="postlink" href="http://www.reportdesigner.info">www.reportdesigner.info</a><!-- w -->
You can save the report in JPG, BMP, WMF, EMF, PNG
and you can send it by mail.
If you have more than 1 page you can save it and compress it and
send the file.zip by mail too.
Regards.
Ruben Fernandez |
ways to save report to a file and easily open | Ruben,
If I purchase easypreview,could I intergrade zip,sendmail(hbzlib.dll,mail.dll,nconvert.exe ,epreview.exe,epreview.dbf ) into my app ( link a lib or dll file)? now there are too many files.
Regards!
Shuming Wang |
ways to save report to a file and easily open | Hello,
you can add easely the option to save the EMF to another graph format using nconvert.exe
regards
Marcelo |
ways to save report to a file and easily open | Shuming:
I belive that you can´t, but you can ask to
EasyPreview developpers.
Sorry for my English.
Regards.
Ruben Fernandez. |
ways to save report to a file and easily open | Marcelo:
How can I do that?
Thank tou.
Ruben Fernandez |
ways to save report to a file and easily open | Ruben
you can use nconvert a tools part of xnview.
1.- you can get all the EMF generated for report or print class
by default windows files temporal directory but you can change this
in the tprint data cDir from the resport oReport:oDevice:cDir
This is for FWH previus last 2.7 because I read that the last version generate the EMF with randon prefix name
2.- with nconvert you can export every EMF from the FW report to another format
Shellexecute(, "open","nconvert.exe","-out jpeg .....") you can read the manual
for the best option for you. There are batch option with automatic enumerate
-out jpeg -n 1 10 l -o prefijo #.jpg c:\windows\temp\tmp####.emf
There are another nicer posibility, that is use directly DLL from xnview, I try but whitout entire success, mybe I will try again in the future, I sure that another people here like Enrico can help us with this
And the end, you can add a button or menu option in the preview to define the export operation.
regards
Marcelo |
ways to save report to a file and easily open | Shuming,
One issue to keep in mind is that fax is secure and email isn't.
You can get a PDF print driver that can be controlled by via code so that it doesn't prompt the user for a filename. Some are capable of being password protected. It is also possible to add a digital signature to a PDF.
Another option is to zip the report and password protect the zip file.
I have not done either one of these yet, so I can't offer any specific recommendations.
James |
ways to save report to a file and easily open | [quote="James Bott":3fo2dh5g]Shuming,
One issue to keep in mind is that fax is secure and email isn't.
You can get a PDF print driver that can be controlled by via code so that it doesn't prompt the user for a filename. Some are capable of being password protected. It is also possible to add a digital signature to a PDF.
Another option is to zip the report and password protect the zip file.
I have not done either one of these yet, so I can't offer any specific recommendations.
James[/quote:3fo2dh5g]
James
We have purchased a product "imagetopdf" that allows silently to generate a pdf from emf files. This is done without any pdf printer, no installation, Just a file to ship with your app and a set of commands.
The product cost is 250 Us Dollars for unlimited users and i can say it is a great tool.
It took me 5 minutes to get it working. Now my preview generates pdf files and emails them.
It can also code in avery clever way the pdf (no print, signature ...etc)
For those who may be interested check : <!-- w --><a class="postlink" href="http://www.UtilityWarrior.com">www.UtilityWarrior.com</a><!-- w -->
Support is excellent.
Richard |
ways to save report to a file and easily open | Richard,
I note that the website does not mention supporting EMF files, but I suppose that must be a mistake on their part.
Also, it appears that the licensing requires that you purchase one copy (at US$250) for each copy of your application. I know that there are royalty free libraries that you can get to generate PDF's.
James |
ways to save report to a file and easily open | Hello!
<!-- m --><a class="postlink" href="http://www.utilitywarrior.com/Image-to-PDF-Dynamic-Link-Library.htm">http://www.utilitywarrior.com/Image-to- ... ibrary.htm</a><!-- m -->
[quote:29dg02ge]Pricing:
Per Product $59.99
Unlimited Development $249.99 [/quote:29dg02ge]
<!-- m --><a class="postlink" href="http://www.utilitywarrior.com/TermsDLL.htm">http://www.utilitywarrior.com/TermsDLL.htm</a><!-- m -->
[quote:29dg02ge]To keep the pricing structure for Utility Warrior products simple, we have adopted a low cost policy that breaks down the pricing by usage:
Per Product: Each item of software developed (no matter what it's use - personal, used within a company or distributed in any form outside of a company - whether free or charged for) which uses the DLL must have a Product license.
Unlimited Development: Allows an unlimited number of software products (no matter what their use - see above) which use the DLL to be developed.
Importantly, these licenses are ROYALTY FREE - once you have bought the license there are no other costs or payments to make and the DLL can be included with your product. [/quote:29dg02ge]
But, it seems that according to documentation there is no support for EMF files (only bitmap images are supported: "Converts JPEG, JPG, TIFF, TIF, PNG, GIF, BMP, PCX and TGA images"). Probably they haven't updated it yet?
Roman |
ways to save report to a file and easily open | Roman,
Thanks for pointing out the terms of the DLL. I was apparently looking at the command line (exe) utility.
James |
ways to save report to a file and easily open | [quote="modicr":103yidfp]Hello!
<!-- m --><a class="postlink" href="http://www.utilitywarrior.com/Image-to-PDF-Dynamic-Link-Library.htm">http://www.utilitywarrior.com/Image-to- ... ibrary.htm</a><!-- m -->
[quote:103yidfp]Pricing:
Per Product $59.99
Unlimited Development $249.99 [/quote:103yidfp]
<!-- m --><a class="postlink" href="http://www.utilitywarrior.com/TermsDLL.htm">http://www.utilitywarrior.com/TermsDLL.htm</a><!-- m -->
[quote:103yidfp]To keep the pricing structure for Utility Warrior products simple, we have adopted a low cost policy that breaks down the pricing by usage:
Per Product: Each item of software developed (no matter what it's use - personal, used within a company or distributed in any form outside of a company - whether free or charged for) which uses the DLL must have a Product license.
Unlimited Development: Allows an unlimited number of software products (no matter what their use - see above) which use the DLL to be developed.
Importantly, these licenses are ROYALTY FREE - once you have bought the license there are no other costs or payments to make and the DLL can be included with your product. [/quote:103yidfp]
But, it seems that according to documentation there is no support for EMF files (only bitmap images are supported: "Converts JPEG, JPG, TIFF, TIF, PNG, GIF, BMP, PCX and TGA images"). Probably they haven't updated it yet?
Roman[/quote:103yidfp]
Roman
Initially they did not have support for EMF
When i purchased the product, i asked them to add the support for EMF (it was a condition) and they did it in 2 days. So now they have the support for EMF (My app uses it) but they have not yet updated the web page.
I prefer the command line utility over the dll (i tested both), command line utility is much easier to use with fwh and xharbour. It takes 5 minutes to make it work.
Richard <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
ways to save report to a file and easily open | [quote="James Bott":86fh4nmf]Roman,
Thanks for pointing out the terms of the DLL. I was apparently looking at the command line (exe) utility.
James[/quote:86fh4nmf]
James
The same licensing applies to Command line utility
Richard |
ways to save report to a file and easily open | Richard,
[quote:1g074bsf]The same licensing applies to the command line utility.[/quote:1g074bsf]
Well perhaps it does, but here is what their website says:
[quote:1g074bsf]Per Workstation: For use by a single user on a single PC.
Per Server: For use by multiple users on a single PC, whether through a client/server structure or through the use of resource shares within a LAN environment.
Unlimited/Internet: For use by multiple users on multiple PCs within a LAN/WAN environment or by users over the Internet.[/quote:1g074bsf]
It sounds like you need one license for each LAN/WAN.
James |
ways to save report to a file and easily open | Thanks for so many replies!
Shuming Wang |
ways to save report to a file and easily open | [quote="ShumingWang":24se3r0p]Thanks for so many replies!
Shuming Wang[/quote:24se3r0p]
One more from me...
You may use PDF995.
This is a printer driver which allows you to do something more than any other PDF driver that I have seen, which is to create a pagkage of all print jobs, in one file (called Combined).
It automatically captures the print job names from your programs, and all you have to do is to change the PDF995.INI file to work either on combine mode, or single document mode.
It offers another tool that allows you to encrypt files from inside your Clipper FW or FWH xHarbour, and set the rights (Print, copy, passwords,etc).
I consider it as an excellent tool and it's very reliable.
The PDF995 is freeware, and the license for some minor splash screens can be removed by purchasing a 10.00$ license key to register it.
For more info try: [url:24se3r0p]http://www.pdf995.com/[/url:24se3r0p]
Kind regards
Evans |
ways to save report to a file and easily open | Evans,
I have a few questions about PDF995. If I remember correctly it also requires installing Ghostscript too? If so, then your application installation has to install the app, PDF995, and Ghostscript, right?
Also, to prevent the splash screens, you would need to pay the license fee for each copy of PDF995 that you install with a copy of your application, correct?
Can you print to a PDF without user interaction (no dialogs)?
James |
ways to save report to a file and easily open | [quote="James Bott":3s6qq46o]Can you print to a PDF without user interaction (no dialogs)?[/quote:3s6qq46o]
Yes, using PDFCreator.
EMG |
ways to save report to a file and easily open | [quote="EnricoMaria":5p8bzmm6][quote="James Bott":5p8bzmm6]Can you print to a PDF without user interaction (no dialogs)?[/quote:5p8bzmm6]
Yes, using PDFCreator.
EMG[/quote:5p8bzmm6]
Enrico
You still need to install a pdf printer with PDF creator
Richard |
ways to save report to a file and easily open | [quote="Richard Chidiak":1murk0eq]You still need to install a pdf printer with PDF creator[/quote:1murk0eq]
Yes, but it is free.
EMG |
ways to save report to a file and easily open | [quote="James Bott":1zeifx5l]Evans,
I have a few questions about PDF995. If I remember correctly it also requires installing Ghostscript too? If so, then your application installation has to install the app, PDF995, and Ghostscript, right?
Also, to prevent the splash screens, you would need to pay the license fee for each copy of PDF995 that you install with a copy of your application, correct?
Can you print to a PDF without user interaction (no dialogs)?
James[/quote:1zeifx5l]
James,
PDF995 is a freeware tool, requiring no fees to use, unless you want to get rid of the splash screens. According to its creators (<!-- w --><a class="postlink" href="http://www.pdf995.com">www.pdf995.com</a><!-- w -->), the license key costs 9.95 USD, and it's really worth to pay for this.
Obtaining THINSETUP.EXE with the license, stops the splash screens.
How do we use it...
We install it as a regular printer. It does not require ANY OTHER software drivers, other than those provided by PDF995.
We simply create a PDF995.INI file in C:\PDF995\RES folder (which is used for the PDF995 program) and tell the PDF995 drivers to use the current document's filename to create a PDF.
We may alterntaviely create one big file called COMBINED.PDF (or any filename of your choice), by writing this PDF995.INI file.
Example of non combined pdf (single document that will be created with any filename we assign it with PRINT oprn to (cPrinter) name "Summary Report of May_10_2006
[code:1zeifx5l][Parameters]
Output File=SAMEASDOCUMENT
Output Folder=C:\PDF995\OUTPUT
Combine Documents=0
Combine Last=0
Size=letter
Autolaunch=0
[/code:1zeifx5l]
Example of combined pdf created with printing multiple documents, for example, print the cover page as one document, then the Summary report, then the detailed report, then the Taxes report, etc. all in one and only single pdf document.
[code:1zeifx5l]
[Parameters]
Output File=C:\PDF995\OUTPUT\Combined.pdf
Output Folder=C:\PDF995\OUTPUT
Combine Documents=1
Combine Last=0
Size=letter
Autolaunch=0
[/code:1zeifx5l]
By saving either one of the above text into C:\PDF995\RES folder, we tell the pdf driver how to handle the printouts.
Believe it or not, it does a great job.
There is also another tool provided by PDF995. It's called "pdf995 Standard Encryption.exe". This accepts parameters to open any file, encrypt it with password, 64-128 bit algorithm, set properties for printing, copying, where to save the encrypted file and even under what filename, etc., all by passing parameters through our xHB/FWH program!
The price for obtaining a license key is at least affordable, and it's the least I can say about it.
What PDF995 offers, is really something else.
Speaking of how to send the created file by email...
I believe that any one who can email something, can also attach this file to an email. It's not so difficult at all. Simply attach the created file to the email and you're done.
For any further (programming) issues, please don't hesitate to ask me.
All and all, we use PDF995 as any other printer driver (we can set the page size also and the resolution of the pdf, through the above PDF995.INI file!)
Kind regards
Evans
ps. Yes, there are no dialogs displayed by PDF995 when we print through it. Everything that we do and that is not much we do, is send our document to the printer (report or print makes no difference)
Finally, I forgot to tell you that you can open the produced file directly from your XHB/FWH program by calling the Adobe Reader as follows:
[code:1zeifx5l]Shellexecute(NIL, "OPEN", Chr(34) + xoRepFile + Chr(34), NIL, NIL, 1)[/code:1zeifx5l]
Of course, xoRepFile should be the filename that your document was created, and contain the full path.
e.g. xoRepFile := "C:\PDF995\OUTPUT\COMBINED.PDF"
Sorry for the long post <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
ways to save report to a file and easily open | Evans,
Thanks for all the detailed info.
[quote:304lnlwy]PDF995 is a freeware tool, requiring no fees to use, unless you want to get rid of the splash screens.[/quote:304lnlwy]
Well, of course, for a commercial application (that you are selling) you do not want splash screens from another application showing up. So you need the license.
[quote:304lnlwy]We install it as a regular printer. It does not require ANY OTHER software drivers, other than those provided by PDF995.[/quote:304lnlwy]
OK, so you need a copy for each user. This creates a problem. You now have to license your commercial application for x number of users, because you need to purchase x number of licenses for the PDF driver to go with the application. So, for instance, if you sell your application for $300 and the customer wants it for 10 users, you will need to add on another $100 to your price for the PDF driver licenses. This is also going to be hard to control, because the customer could then install it on any number of machines I would think (unless PDF995 has some sort of protection against this).
According to their website it DOES require a Postscript "converter:"
[quote:304lnlwy]Pdf995 is a printer driver that works with any Postscript to PDF converter. The pdf995 printer driver and a free Converter are available for easy download. [/quote:304lnlwy]
Granted the Postscript converter is free, but it is also 5MB and it has to be installed on each PC that the application is run from along with the PDF995. Right?
So, as before, my concerns are two, 1) You have to install both the PDF995 print driver and the Postscript converter on every PC and 2) you have to add on the cost of all the licenses--one for each user.
I am only talking about including it with a commerical application. Of couse, if one is using it in-house, then that is simpler. But, I know you are selling a commericial application, so I wonder how you handle these issues? Or, maybe you are only using it in-house?
A better solution would seem to be a PDF library that could be compiled into the application or distributed as a DLL. This way you would not need to install a copy on each PC and there would only be one developer license required. So even if the license was several hundred dollars, you could distibute any number of applications for any number of users without any additional fees.
James |
ways to save report to a file and easily open | James,
for printing to pdf I prefer CutePdf. It´s free and installs as a normal windows printer. CutePdf supports more pageformats than pdf995. And the quality of the createtd pdf is very good.
Stefan |
ways to save report to a file and easily open | [quote="StefanHaupt":2uhjnjqm]James,
for printing to pdf I prefer CutePdf. It´s free and installs as a normal windows printer. CutePdf supports more pageformats than pdf995. And the quality of the createtd pdf is very good.
Stefan[/quote:2uhjnjqm]
Stefan and others
I guess you should be very careful about licensing if you are distributing software. None of the above stated programs is "free for commercial use". You need a license for all of them. I have spent quite a time on the subject and emailed all the authors including cutepdf, pdf95 ...etc and many others. If you use inhouse, no problem. But we all sell "commercial software" outside .
The only product i have found at a "fairly reasonable price" for unlimited licensing is image2pdf that installs either a dll file or a executable run time. No special printer needs to be installed and the price is 250 Us dollars for unlimited users.
My 2 cents,
Richard |
ways to save report to a file and easily open | Richard,
I suppose when we distribute a aplication , we have no control which printers the user installs , or downloads.
So , i give the user only 'the information' that such tools can be usefull , he has to install it himself , it has nothing to do with mine distribution.
It is not mine responbility , but from the user !
Frank |
ways to save report to a file and easily open | [quote="Frank Demont":2z2xkdjb]Richard,
I suppose when we distribute a aplication , we have no control which printers the user installs , or downloads.
So , i give the user only 'the information' that such tools can be usefull , he has to install it himself , it has nothing to do with mine distribution.
It is not mine responbility , but from the user !
Frank[/quote:2z2xkdjb]
Frank
Are you serious ?
Example : If you want to email a report from your applicatin , then you have to print it on a "specific" printer first (the pdf one) and then email it. Thus you have changed your software for this purpose and this is covered by the licensing issue. You should read the GPL license of these products .
Richard |
ways to save report to a file and easily open | Richard,
[quote:dibt9whj]If you want to email a report from your application , then you have to print it on a "specific" printer first (the pdf one) and then email it. Thus you have changed your software for this purpose and this is covered by the licensing issue. You should read the GPL license of these products. [/quote:dibt9whj]
Are you saying that if your application is designed to look for a specific print driver, that you have to pay for a license for the driver? I don't see how that could be--you don't have to purchase a MS Word license if your app looks for it. Still print drivers are not a good solution.
I think Frank was saying that he does nothing to his application. He just tells the customer that they can get PDF print drivers if they want to. Personally, I don't think this is a good solution. Customers want this capability built-in and simple to use. Add-on print drivers will prompt the user for a filename, then they have to open a new email and find the file to attach it. If one is going to send 100 invoices, this would be really tedious and error prone. I think sooner or later we HAVE to provide email capability for all documents output by our applications. The sooner the better.
It is incredible that the PC industry has been around for over 25 years now, and we still do not have online document generation and delivery built into Windows. I think Apple just did add PDF generation to their OS. Actually, XML documents are a much better solution since you can then get the data back out of the document.
James |
ways to save report to a file and easily open | Richard,
[quote:1xithkat]The only product i have found at a "fairly reasonable price" for unlimited licensing is image2pdf that installs either a dll file or a executable run time. No special printer needs to be installed and the price is 250 Us dollars for unlimited users. [/quote:1xithkat]
It seems the price for a developer license has gone up. The lowest price license I could find on their site is US$799.
<!-- m --><a class="postlink" href="http://www.verypdf.com/tif2pdf/tif2pdf.htm">http://www.verypdf.com/tif2pdf/tif2pdf.htm</a><!-- m -->
James |
ways to save report to a file and easily open | [quote="James Bott":3ct3fsmk]I think Frank was saying that he does nothing to his application. He just tells the customer that they can get PDF print drivers if they want to. Personally, I don't think this is a good solution. Customers want this capability built-in and simple to use. Add-on print drivers will prompt the user for a filename, then they have to open a new email and find the file to attach it. If one is going to send 100 invoices, this would be really tedious and error prone.[/quote:3ct3fsmk]
Using PDFCreator and SndMail.dll I created a system that sends any email you want without user intervention.
EMG |
ways to save report to a file and easily open | Enrico,
If you are referring to PDF Creator by Amyuni, the developer's license (the one that includes encryption and digital signature capability) is US$920. Kind of expensive.
<!-- m --><a class="postlink" href="http://www.amyuni.com/en/products/pdf_creator/pricing.php">http://www.amyuni.com/en/products/pdf_c ... ricing.php</a><!-- m -->
Is that the one you are using?
James |
ways to save report to a file and easily open | [quote="James Bott":2l7tbrn7]Richard,
[quote:2l7tbrn7]The only product i have found at a "fairly reasonable price" for unlimited licensing is image2pdf that installs either a dll file or a executable run time. No special printer needs to be installed and the price is 250 Us dollars for unlimited users. [/quote:2l7tbrn7]
It seems the price for a developer license has gone up. The lowest price license I could find on their site is US$799.
<!-- m --><a class="postlink" href="http://www.verypdf.com/tif2pdf/tif2pdf.htm">http://www.verypdf.com/tif2pdf/tif2pdf.htm</a><!-- m -->
James[/quote:2l7tbrn7]
James
The correct link
<!-- m --><a class="postlink" href="http://www.utilitywarrior.com/Image-to-PDF-Dynamic-Link-Library.htm">http://www.utilitywarrior.com/Image-to- ... ibrary.htm</a><!-- m -->
Price still the same Unlimited Development $249.99 |
ways to save report to a file and easily open | Enrico,
OK, now I see from a previous message that you said PDFCreator was free, so I am assuming you meant this one on Source Forge:
<!-- m --><a class="postlink" href="http://sourceforge.net/projects/pdfcreator/">http://sourceforge.net/projects/pdfcreator/</a><!-- m -->
The thing about Source Forge is that I never can find any documentation about the product like a simple description of it and it's features. It seems you have to install the application in the hope that the feature list will be in the install.
Is there a feature list somewhere?
It also seems to be a print driver and also requires Postscript. So, don't both of these have to be installed on every PC? How do you do this with a commercial application? Wouldn't it be a support headache since each time a new PC was added, users would be wanting to know why they can't create PDF documents.
James |
ways to save report to a file and easily open | Richard,
[quote:1pp7dkub]http://www.utilitywarrior.com/Image-to-PDF-Dynamic-Link-Library.htm [/quote:1pp7dkub]
OK. Now doesn't this just put the EMF files into a PDF? Isn't a EMF file an image? Therefore you have a graphic image in a PDF rather than text, so the viewer (person) would not be able to copy text out of the PDF. Also, the PDF file size would be much larger than one containing text.
After thinking about this some more, it seems that we have to use a print driver to get report output (from TReport and/or TPrinter) from a FW app into a PDF file as text. But that is compilcated by all the installation and licensing issues previously discussed.
There is a PDF class but the reports have to be built using that class which is very tedious, so I don't think that is a good solution either.
James |
ways to save report to a file and easily open | [quote="James Bott":2n2maqbl]Enrico,
OK, now I see from a previous message that you said PDFCreator was free, so I am assuming you meant this one on Source Forge:
<!-- m --><a class="postlink" href="http://sourceforge.net/projects/pdfcreator/">http://sourceforge.net/projects/pdfcreator/</a><!-- m -->[/quote:2n2maqbl]
Exactly.
[quote="James Bott":2n2maqbl]The thing about Source Forge is that I never can find any documentation about the product like a simple description of it and it's features. It seems you have to install the application in the hope that the feature list will be in the install.
Is there a feature list somewhere?[/quote:2n2maqbl]
Yes, there is a help file that comes installed with the package.
[quote="James Bott":2n2maqbl]It also seems to be a print driver and also requires Postscript. So, don't both of these have to be installed on every PC?[/quote:2n2maqbl]
Yes, but it is a single auto-installing package.
[quote="James Bott":2n2maqbl]How do you do this with a commercial application? Wouldn't it be a support headache since each time a new PC was added, users would be wanting to know why they can't create PDF documents.[/quote:2n2maqbl]
If your user wants to open PDF documents then he will have to install Acrobat Reader, right? PDF is currently an external component and most users can install the needed software without problem.
EMG |
ways to save report to a file and easily open | [quote="James Bott":2ezapr8i]After thinking about this some more, it seems that we have to use a print driver to get report output (from TReport and/or TPrinter) from a FW app into a PDF file as text. But that is compilcated by all the installation and licensing issues previously discussed.
There is a PDF class but the reports have to be built using that class which is very tedious, so I don't think that is a good solution either.[/quote:2ezapr8i]
Right, but a virtual printer driver is the less-invasive alternative.
EMG |
ways to save report to a file and easily open | Enrico,
[quote:2yqghsjo]PDF is currently an external component and most users can install the needed software without problem. [/quote:2yqghsjo]
My point is that for a new application the customer has to install the app on a server, then the print driver on every PC. Six months later, when a new PC is added the print driver will not be on that PC. I quess you could have the app to look for the diver and if it doesn't find it to tell the user that it needs to be installed. Perhaps that could be done from an install program that was in the app's directory on the server. However, this still does add complication, but it may be the only solution (see my previous message about print drivers and FW reports). Ideally, it would be nice to have the PDF generation capability built into the app so print driver installation wouldn't be an issue. Then it would just be one install and that's it.
James |
ways to save report to a file and easily open | [quote="James Bott":2ffd5f26]Richard,
[quote:2ffd5f26]http://www.utilitywarrior.com/Image-to-PDF-Dynamic-Link-Library.htm [/quote:2ffd5f26]
OK. Now doesn't this just put the EMF files into a PDF? Isn't a EMF file an image? Therefore you have a graphic image in a PDF rather than text, so the viewer (person) would not be able to copy text out of the PDF. Also, the PDF file size would be much larger than one containing text.
After thinking about this some more, it seems that we have to use a print driver to get report output (from TReport and/or TPrinter) from a FW app into a PDF file as text. But that is compilcated by all the installation and licensing issues previously discussed.
There is a PDF class but the reports have to be built using that class which is very tedious, so I don't think that is a good solution either.
James[/quote:2ffd5f26]
James
Basically the EMF file is converted to PDF through PNG conversion as far as i know (i may be wrong), this is due to compression factors.
Usually when we save a report to a PDF, we do not want users to retreive data from it and most users do not have the tool to retreive from pdf, they just have acrobat readers. Besides this, Image2pdf allows editing data fom a pdf just like accrobat does (accrobat distiller reader and writer). So there is no difference. You can also allow a lot of security issues. The size of a pdf produced with image2pdf is a bit higher that the one obtained with a true pdf printer. I tested it with big reports.
Of course printer driver is excellent but too problematic when you have too many users. You have to worry about their installation anyway.
We have replaced easypreview with fwh's preview + imge2pdf and shipped lots of updates . The result is excellent and we are quite happy about it.
Richard |
ways to save report to a file and easily open | [quote="James Bott":3on7awhc]Ideally, it would be nice to have the PDF generation capability built into the app so print driver installation wouldn't be an issue. Then it would just be one install and that's it.[/quote:3on7awhc]
I agree, but I can't see how to get this now.
EMG |
ways to save report to a file and easily open | Richard,
[quote:lz534uqo]Usually when we save a report to a PDF, we do not want users to retreive data from it...[/quote:lz534uqo]
OK, good in some situations.
[quote:lz534uqo]...and most users do not have the tool to retreive from pdf, they just have acrobat readers.[/quote:lz534uqo]
Perhaps you didn't know you can copy from Acrobat Reader? There is a Text Select button on the toolbar (T with small dotted line box next to it). Select the text, then on the right-click menu select Copy.
James |
ways to save report to a file and easily open | [quote="EnricoMaria":3fzjbfj7][quote="James Bott":3fzjbfj7]Enrico,
OK, now I see from a previous message that you said PDFCreator was free, so I am assuming you meant this one on Source Forge:
<!-- m --><a class="postlink" href="http://sourceforge.net/projects/pdfcreator/">http://sourceforge.net/projects/pdfcreator/</a><!-- m -->[/quote:3fzjbfj7]
Exactly.
[quote="James Bott":3fzjbfj7]The thing about Source Forge is that I never can find any documentation about the product like a simple description of it and it's features. It seems you have to install the application in the hope that the feature list will be in the install.
Is there a feature list somewhere?[/quote:3fzjbfj7]
Yes, there is a help file that comes installed with the package.
[quote="James Bott":3fzjbfj7]It also seems to be a print driver and also requires Postscript. So, don't both of these have to be installed on every PC?[/quote:3fzjbfj7]
Yes, but it is a single auto-installing package.
[quote="James Bott":3fzjbfj7]How do you do this with a commercial application? Wouldn't it be a support headache since each time a new PC was added, users would be wanting to know why they can't create PDF documents.[/quote:3fzjbfj7]
If your user wants to open PDF documents then he will have to install Acrobat Reader, right? PDF is currently an external component and most users can install the needed software without problem.
EMG[/quote:3fzjbfj7]
Enrico
Almost all new computers sold today (since quite a while) have acrobat reader built in. Most of users do not have to install it, they have it.
Richard |
ways to save report to a file and easily open | [quote="James Bott":3sa8piu1]Richard,
[quote:3sa8piu1]Usually when we save a report to a PDF, we do not want users to retreive data from it...[/quote:3sa8piu1]
OK, good in some situations.
[quote:3sa8piu1]...and most users do not have the tool to retreive from pdf, they just have acrobat readers.[/quote:3sa8piu1]
Perhaps you didn't know you can copy from Acrobat Reader? There is a Text Select button on the toolbar (T with small dotted line box next to it). Select the text, then on the right-click menu select Copy.
James[/quote:3sa8piu1]
James
I know you can copy from Acrobat reader but this is an option you can forbid in any tool creating a pdf file.
Richard |
ways to save report to a file and easily open | Richard,
[quote:pviirjy6]I know you can copy from Acrobat reader but this is an option you can forbid in any tool creating a pdf file. [/quote:pviirjy6]
Understood. My point is that if you create PDFs from EMFs users cannot copy the text out even if you want to give them that capability.
James |
ways to save report to a file and easily open | [quote="James Bott":sbl55oo4]Richard,
[quote:sbl55oo4]I know you can copy from Acrobat reader but this is an option you can forbid in any tool creating a pdf file. [/quote:sbl55oo4]
Understood. My point is that if you create PDFs from EMFs users cannot copy the text out even if you want to give them that capability.
James[/quote:sbl55oo4]
Sure i agree, it is handled by the pdf like an image.
Richard |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.