topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
patternlock | Thanks Otto
How do you do this?
[code=fw:ctgwtwr4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><script><br /> <span style="color: #00C800;">function</span> submitform<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">{</span><br /> <span style="color: #00C800;">If</span> document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">"password"</span><span style="color: #000000;">)</span>.value=<span style="color: #ff0000;">"1234"</span>;<br /> <a href=principal.prg></a>;<br /> <span style="color: #00C800;">Else</span> ;<br /> alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Error, intente de nuevo"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">Endif</span>;<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">true</span>;<br /> <span style="color: #000000;">}</span><br /> </script><br /> </div>[/code:ctgwtwr4] |
patternlock | Hello Adhemar,
Best regards,
Otto
[code=fw:5t2hifmi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> main<br /><br />TEMPLATE<br /><br /><!DOCTYPE html><br /><html xmlns=<span style="color: #ff0000;">"http://www.w3.org/1999/xhtml"</span>><br /><br /><head><br /> <meta http-equiv=<span style="color: #ff0000;">"Content-Type"</span> content=<span style="color: #ff0000;">"text/html; charset=utf-8"</span> /><br /> <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=320, user-scalable=no, initial-scale=1.0, maximum-scale=1.0"</span> /><br /> <title>Pattern Lock</title><br /> <br /> <link rel=<span style="color: #ff0000;">"stylesheet"</span> type=<span style="color: #ff0000;">"text/css"</span> href=<span style="color: #ff0000;">"_style/patternlock.css"</span>/><br /> <script src=<span style="color: #ff0000;">"_script/patternlock.js"</span>></script><br /> <br /> <script><br /> <span style="color: #00C800;">function</span> submitform<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">{</span><br /> alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"PW you entered "</span> + document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">"password"</span><span style="color: #000000;">)</span>.value<span style="color: #000000;">)</span>; <br /> <br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">"password"</span><span style="color: #000000;">)</span>.value==<span style="color: #ff0000;">"123"</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">window</span>.open<span style="color: #000000;">(</span><span style="color: #ff0000;">"http://www.google.com/"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">{</span><br /> alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Error, intente de nuevo"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">true</span>;<br /> <span style="color: #000000;">}</span><br /> </script><br /> <br /> <style><br /> body<span style="color: #000000;">{</span><br /> text-align:<span style="color: #0000ff;">center</span>;<br /> font-family:<span style="color: #000000;">Arial</span>, Helvetica, sans-serif;<br /> <span style="color: #000000;">}</span><br /> </style><br /> <br /></head><br /><br /><body><br /> <form <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"post"</span> onsubmit=<span style="color: #ff0000;">"return submitform()"</span>><br /> <h2>Please login</h2><br /> <br /> <div><br /> <input type=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"patternlock"</span> /><br /> <input type=<span style="color: #ff0000;">"submit"</span> value=<span style="color: #ff0000;">"login"</span>/><br /> </div><br /> </form><br /> <br /></body><br /></html><br /><br /><br />ENDTEXT<br /><br /><span style="color: #00C800;">return</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:5t2hifmi] |
patternlock | Thanks Otto
How to make it open in the same window I tried with: window.open('menu.prg,'_self'); and it does not work
How to prevent cannot open directly: <!-- m --><a class="postlink" href="http://localhost/admcon/menu.prg">http://localhost/admcon/menu.prg</a><!-- m -->
Thanks for your time and help |
patternlock | Hello Adhemar,
try this code.
But if you what an access control, you need to post a form to the server and then decide if you are allowed or not to enter the side.
Antonio posted yesterday some code:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=46&t=40852">viewtopic.php?f=46&t=40852</a><!-- l -->
Do you use TWeb or plain HTML/JS?
Best regards,
Otto
[code=fw:3aix0avu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> main<br /><br />TEMPLATE<br /><br /><!DOCTYPE html><br /><html xmlns=<span style="color: #ff0000;">"http://www.w3.org/1999/xhtml"</span>><br /><br /><head><br /> <meta http-equiv=<span style="color: #ff0000;">"Content-Type"</span> content=<span style="color: #ff0000;">"text/html; charset=utf-8"</span> /><br /> <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=320, user-scalable=no, initial-scale=1.0, maximum-scale=1.0"</span> /><br /> <title>Pattern Lock</title><br /> <br /> <link rel=<span style="color: #ff0000;">"stylesheet"</span> type=<span style="color: #ff0000;">"text/css"</span> href=<span style="color: #ff0000;">"_style/patternlock.css"</span>/><br /> <script src=<span style="color: #ff0000;">"_script/patternlock.js"</span>></script><br /> <br /> <script><br /> <span style="color: #00C800;">function</span> submitform<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">{</span><br /> alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"PW you entered "</span> + document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">"password"</span><span style="color: #000000;">)</span>.value<span style="color: #000000;">)</span>; <br /> <br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>document.getElementById<span style="color: #000000;">(</span><span style="color: #ff0000;">"password"</span><span style="color: #000000;">)</span>.value==<span style="color: #ff0000;">"123"</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">window</span>.open<span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://www.google.com"</span>, <span style="color: #ff0000;">'_blank'</span><span style="color: #000000;">)</span>.focus<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">{</span><br /> alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Error, intente de nuevo"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">true</span>;<br /> <span style="color: #000000;">}</span><br /> </script><br /> <br /> <style><br /> body<span style="color: #000000;">{</span><br /> text-align:<span style="color: #0000ff;">center</span>;<br /> font-family:<span style="color: #000000;">Arial</span>, Helvetica, sans-serif;<br /> <span style="color: #000000;">}</span><br /> </style><br /> <br /></head><br /><br /><body><br /> <form <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"post"</span> onsubmit=<span style="color: #ff0000;">"return submitform()"</span>><br /> <h2>Please login</h2><br /> <br /> <div><br /> <input type=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"patternlock"</span> /><br /> <input type=<span style="color: #ff0000;">"submit"</span> value=<span style="color: #ff0000;">"login"</span>/><br /> </div><br /> </form><br /> <br /></body><br /></html><br /><br /><br />ENDTEXT<br /><br /><span style="color: #00C800;">return</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:3aix0avu] |
patternlock | Thanks Otto
Do you use TWeb or plain HTML/JS? I am using HTML/JS
Where i put it:
[code=fw:1s7syqky]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><form <span style="color: #0000ff;">action</span>=<span style="color: #ff0000;">"save.prg?customer"</span> <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"post"</span>><br />...<br /><button <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"save"</span> type=<span style="color: #ff0000;">"submit"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary float-right"</span>>Save changes</button><br /> </div>[/code:1s7syqky] |
patternlock | Hello Adhemar,
do you know this sample?
Best regards,
Otto
[code=fw:vzlzdr7k]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><br /><span style="color: #B900B9;">/*<br />Harbour Module for Apache<br />Autor: Lailton Fernando Mariano - <[email protected]><br />Sample: Simple login<br /><br />*/</span><br /><br />#xtranslate HTML => <span style="color: #00D7D7;">#pragma</span> __text| AP_RPuts<span style="color: #000000;">(</span>%s<span style="color: #000000;">)</span><br /><br />memvar hForm<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;">if</span> loadForm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// here we can check the credential</span><br /><span style="color: #00C800;">if</span> getForm<span style="color: #000000;">(</span> <span style="color: #ff0000;">"username"</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"lailton"</span> .and. getForm<span style="color: #000000;">(</span> <span style="color: #ff0000;">"password"</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"harbour"</span><br /><br />page_home<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 /><span style="color: #00C800;">else</span><br />msgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"User or password is not valid"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br />reload<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">else</span><br /><br />page_login<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> page_home<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />HTML<br /><br /><html><br /><br /><head><br /> <meta charset=<span style="color: #ff0000;">"utf-8"</span>><br /> <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=device-width, initial-scale=1, shrink-to-fit=no"</span>><br /> <link rel=<span style="color: #ff0000;">"stylesheet"</span> href=<span style="color: #ff0000;">"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"</span> integrity=<span style="color: #ff0000;">"sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"</span> crossorigin=<span style="color: #ff0000;">"anonymous"</span>><br /> <title>Harbour <span style="color: #00C800;">for</span> Web</title><br /></head><br /><br /><body <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"padding:100px;"</span>><br /> <br /> <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"jumbotron"</span>><br /> <h1 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"display-4"</span>>Welcome <span style="color: #0000ff;">to</span> the future!</h1><br /> <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"lead"</span>>New mod_harbour <span style="color: #00C800;">for</span> Apache!</p><br /> <hr <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"my-4"</span>><br /> <p>Let us <span style="color: #0000ff;">move</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">to</span> the future together!</p><br /> <p>It is harbour <span style="color: #00C800;">for</span> Apache!</p><br /> <a <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary btn-lg"</span> href=<span style="color: #ff0000;">"form.prg"</span> role=<span style="color: #ff0000;">"button"</span>>Back <span style="color: #0000ff;">to</span> login</a><br /> </div><br /> <br /></body><br /><br /></html<br />ENDTEXT<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> page_login<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />HTML<br /><html><br /><br /><head><br /> <meta charset=<span style="color: #ff0000;">"utf-8"</span>><br /> <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=device-width, initial-scale=1, shrink-to-fit=no"</span>><br /> <link rel=<span style="color: #ff0000;">"stylesheet"</span> href=<span style="color: #ff0000;">"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"</span> integrity=<span style="color: #ff0000;">"sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"</span> crossorigin=<span style="color: #ff0000;">"anonymous"</span>><br /> <title>Harbour <span style="color: #00C800;">for</span> Web</title><br /></head><br /><br /><body <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"padding:100px;"</span>><br /> <br /> <form <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"post"</span>><br /> <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-group"</span>><br /> <label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"inputUsername"</span>>Email address</label><br /> <input type=<span style="color: #ff0000;">"text"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-control"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"inputUsername"</span> placeholder=<span style="color: #ff0000;">"Benutzername"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"username"</span>><br /> <small <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-text text-muted"</span>>Use the username <span style="color: #ff0000;">"lailton"</span> </small><br /> </div><br /> <br /> <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-group"</span>><br /> <label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"inputPassword"</span>>Password</label><br /> <input type=<span style="color: #ff0000;">"password"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-control"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"inputPassword"</span> placeholder=<span style="color: #ff0000;">"Password"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"password"</span>><br /> <small <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-text text-muted"</span>>Password is <span style="color: #ff0000;">"harbour"</span></small><br /> </div><br /> <br /> <br /> <button type=<span style="color: #ff0000;">"submit"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>Connect</button><br /> </form><br /></body><br /><br /></html<br />ENDTEXT<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> msgAlert<span style="color: #000000;">(</span> cMsg <span style="color: #000000;">)</span><br />? <span style="color: #ff0000;">"<script>alert('"</span>+cMsg+<span style="color: #ff0000;">"');</script>"</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> reload<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />? <span style="color: #ff0000;">"<script>document.location.href = document.location.href;</script>"</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> loadForm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">public</span> hForm := AP_PostPairs<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> len<span style="color: #000000;">(</span> hForm <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">function</span> getForm<span style="color: #000000;">(</span> cKey <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> cVal := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">if</span> hb_HHasKey<span style="color: #000000;">(</span> hForm, cKey <span style="color: #000000;">)</span><br />cVal := hForm<span style="color: #000000;">[</span> cKey <span style="color: #000000;">]</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cVal<br /><br /> </div>[/code:vzlzdr7k] |
patternlock | Adhemar,
Best regards,
Otto
form.prg
[code=fw:2uopvamz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> main<br /><br />TEMPLATE<br /><br /> <!DOCTYPE html><br /><html><br /><head><br /><br /></head><br /><body><br /><br /><h1>Form test</h1><br /><br /><form <span style="color: #0000ff;">action</span>=<span style="color: #ff0000;">"save.prg?customer"</span> <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"post"</span>><br /><label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"fname"</span>>First <span style="color: #0000ff;">name</span>:</label><br /> <input type=<span style="color: #ff0000;">"text"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"fname"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"fname"</span>><br><br><br /> <label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"lname"</span>>Last <span style="color: #0000ff;">name</span>:</label><br /> <input type=<span style="color: #ff0000;">"text"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"lname"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"lname"</span>><br><br><br /><br /><button <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"save"</span> type=<span style="color: #ff0000;">"submit"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary float-right"</span>>Save changes</button><br /><br /></body><br /></html> <br /><br />ENDTEXT<br /><span style="color: #00C800;">return</span> <br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />save.prg<br /><br /><span style="color: #000000;">[</span>code<span style="color: #000000;">]</span><br /><span style="color: #00C800;">function</span> main<br /> <br /><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /> ? <span style="color: #ff0000;">"AP_Body()"</span><br /> ? AP_Body<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /><br /> ? <span style="color: #ff0000;">"AP_Method()"</span><br /> ? AP_Method<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /><br /> ? <span style="color: #ff0000;">"AP_UserIP() --> cUserIP returns the IP, as string, of the client"</span><br /> ? AP_UserIP<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /> ? <span style="color: #ff0000;">"AP_HeadersIn() //--> Hash returns a hash with all headers pairs, key and value"</span><br /> ? AP_HeadersIn<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /> ? <span style="color: #ff0000;">"AP_FileName() --> cFileName returns the filename.prg provided to Apache by the client"</span><br /> ? ValToChar<span style="color: #000000;">(</span>AP_FileName<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /><br /> ? <span style="color: #ff0000;">"AP_GetPairs() --> Hash returns a hash with all GET pairs, key and value "</span><br /> ? ValToChar<span style="color: #000000;">(</span>AP_GetPairs<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /> ? <span style="color: #ff0000;">"AP_Args() --> cArgs returns the args provided to Apache by the client if any "</span><br /> ? ValToChar<span style="color: #000000;">(</span> AP_Args<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<HR>"</span><br /> ? <span style="color: #ff0000;">"AP_PostPairs() --> Hash returns a hash with all POST pairs, key and value"</span><br /> ? <span style="color: #000000;">(</span> AP_PostPairs<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #000000;">[</span>/code<span style="color: #000000;">]</span><br /><br /><br /> </div>[/code:2uopvamz] |
patternlock | Thank you very much dear Otto |
pcode - como trabalhar com variaveis e parametros ? | o código abaixo funciona perfeitamente so que nao consigo trabalhar com variáveis e parâmetros da gpf
ja testei os codigo do forum e todos que manipulam variaveis ou parametros dão gpf
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=9282&p=44419">viewtopic.php?f=6&t=9282&p=44419</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14165">viewtopic.php?f=3&t=14165</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=11626&p=57744">viewtopic.php?f=3&t=11626&p=57744</a><!-- l -->
// -------------------------------------------- //
// PRG1 (EXE)
#include "FiveWin.ch"
function Main()
MsgInfo( "ok from EXE" )
hDll := LoadLibrary( "prg2.dll" )
HB_LibDo( "DLLINIT" )
HB_LibDo( "xMAIN" )
return nil
-------------------------------------------- //
// PRG2 (DLL)
#include "FiveWin.ch"
function xMain()
MsgInfo( "ok from DLL" )
return nil |
pcode - como trabalhar com variaveis e parametros ? | Daniel,
Usa:
LibLoad( "prg2.dll" )
en vez de:
LoadLibrary( "prg2.dll" ) |
pcode - como trabalhar com variaveis e parametros ? | após a mudança nas linhas
HB_LibDo( "DLLINIT" )
HB_LibDo( "xMAIN" )
apresenta a seguinte tela de erro
e variáveis de memória como trabalhar no exemplo acima ?
e parâmetros das funções ?
[img:1i13kwzx]http://www.lopes.ms/fw/DllLib.PNG[/img:1i13kwzx] |
pcode - como trabalhar com variaveis e parametros ? | Daniel,
Tienes que comprobar si se estan exportando esas funciones desde tu EXE.
haz lo siguiente:
impdef.exe TuExe.def TuEXE.exe
y copia aqui el contenido de TuExe.def. Es texto ascii. |
pcode - como trabalhar com variaveis e parametros ? | [code:34ncdq5d]
LIBRARY P1EXE.EXE
EXPORTS
__DbgWndProc @3 ; __DbgWndProc
__GetExceptDLLinfo @1 ; __GetExceptDLLinfo
__WndProc @2 ; __WndProc
___CPPdebugHook @55 ; ___CPPdebugHook
_hb_arrayAdd @12 ; _hb_arrayAdd
_hb_arrayDel @16 ; _hb_arrayDel
_hb_arrayGet @19 ; _hb_arrayGet
_hb_arrayIns @17 ; _hb_arrayIns
_hb_arrayIsObject @14 ; _hb_arrayIsObject
_hb_arrayLast @20 ; _hb_arrayLast
_hb_arrayLen @13 ; _hb_arrayLen
_hb_arrayNew @11 ; _hb_arrayNew
_hb_arrayRelease @21 ; _hb_arrayRelease
_hb_arraySet @18 ; _hb_arraySet
_hb_arraySize @15 ; _hb_arraySize
_hb_extIsArray @24 ; _hb_extIsArray
_hb_fsClose @6 ; _hb_fsClose
_hb_fsCreate @5 ; _hb_fsCreate
_hb_fsDelete @10 ; _hb_fsDelete
_hb_fsOpen @4 ; _hb_fsOpen
_hb_fsRead @7 ; _hb_fsRead
_hb_fsSeek @9 ; _hb_fsSeek
_hb_fsWrite @8 ; _hb_fsWrite
_hb_param @22 ; _hb_param
_hb_paramError @23 ; _hb_paramError
_hb_parc @25 ; _hb_parc
_hb_parclen @26 ; _hb_parclen
_hb_parcsiz @27 ; _hb_parcsiz
_hb_pards @28 ; _hb_pards
_hb_pardsbuff @29 ; _hb_pardsbuff
_hb_parinfa @34 ; _hb_parinfa
_hb_parinfo @35 ; _hb_parinfo
_hb_parl @30 ; _hb_parl
_hb_parnd @31 ; _hb_parnd
_hb_parni @32 ; _hb_parni
_hb_parnl @33 ; _hb_parnl
_hb_ret @36 ; _hb_ret
_hb_reta @37 ; _hb_reta
_hb_retc @38 ; _hb_retc
_hb_retclen @39 ; _hb_retclen
_hb_retl @40 ; _hb_retl
_hb_retni @41 ; _hb_retni
_hb_retnl @42 ; _hb_retnl
_hb_storc @43 ; _hb_storc
_hb_storclen @44 ; _hb_storclen
_hb_stords @45 ; _hb_stords
_hb_storl @46 ; _hb_storl
_hb_stornd @49 ; _hb_stornd
_hb_storni @47 ; _hb_storni
_hb_stornl @48 ; _hb_stornl
_hb_vmExecute @52 ; _hb_vmExecute
_hb_vmProcessDllSymbols @54 ; _hb_vmProcessDllSymbols
_hb_vmProcessSymbols @53 ; _hb_vmProcessSymbols
_hb_xfree @51 ; _hb_xfree
_hb_xgrab @50 ; _hb_xgrab
[/code:34ncdq5d] |
pcode - como trabalhar com variaveis e parametros ? | Daniel,
Fijate que en el fichero DEF no está _hb_retnd, por eso te aparece el error. |
pcode - como trabalhar com variaveis e parametros ? | onde consigo o xharbour atualizado para trabalhar com fivewin ?
com a atualização esses problemas devem ser resolvidos |
pcode - como trabalhar com variaveis e parametros ? | Daniel,
Prueba con esta version de xHarbour:
<!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/xharbour.exe">www.fivetechsoft.com/files/xharbour.exe</a><!-- w --> |
pdating our web page through netDrive3 | Hello,
We are updating our web page through netDrive3 mapped drive with our favorite dbase editor.
Best regards,
Otto
[img:1dyvjukb]https://mybergland.com/fwforum/wartung.gif[/img:1dyvjukb] |
pdf | txt files can simply be printed from Harbour via Winexec("notepad.exe XXX.txt")
How can pdf files been printed from Harbour? |
pdf | jds,
You can find a free PDF-viewer at [url:1rujmker]http://blog.kowalczyk.info/software/sumatrapdf/index.html[/url:1rujmker].
It can be used as a automated print instruction for PDF-files.
I recalled the executable to "PRINTPDF.EXE" to be used in my application.
The source I use is :
[code=fw:1rujmker]<div class="fw" id="{CB}" style="font-family: monospace;">WAITRUN<span style="color: #000000;">(</span><span style="color: #ff0000;">"..<span style="color: #000000;">\U</span>TILIT~1<span style="color: #000000;">\P</span>rintPDF.exe -Print-to-default -exit-on-print "</span> + dNameDoc,<span style="color: #000000;">1</span><span style="color: #000000;">)</span></div>[/code:1rujmker]where dNameDoc contains the pathname of the PDF-file to be printed.
Good luck. |
pdf | I made a mistake in my question: I am looking for a way to READ pdf files from my harbour applications (jds belgium NL) |
pdf | OK I found the way how to read pdf files also. Thank you for the reference to a simple pdf reader (sumatrapdf).
Jds (José Deschutter - belgium) |
pdf | Other question about PDF .
How to convert in batch a word or excel file to PDF .
Winexec(W2pdf.exe "doc.doc" "doc.pdf")
Thanks for your help . |
pdf creation | is it possible to create a pdf [u:2nzqr0wd]within[/u:2nzqr0wd] a fivewin Harbour application starting from a created report? |
pdf creation | Hi JDS
You can create PDF's by code by using pdf.prg and pdf.ch or by installing
a pdf print driver such as pdf99 or cutepdf.
Cheers
Colin |
pdf creation | Dear Jds,
Please refer this link <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=18054&hilit=TPdf#p94541">viewtopic.php?f=6&t=18054&hilit=TPdf#p94541</a><!-- l -->
Regards
Anser |
pdf file size too big & preview | Hi,
there is a very big difference in file size between create a PDF file with Preview Print and choosing PDF driver printer (as PDFCreator, PDF995...)
Example creating same file:
pdfcreator file size: 20 kb
pdf995 file size: 28 kb
PDF FWIN PREVIEW: file size 1800 kb
About 90 times bigger !!
My i reduce this size ? How ?
tks |
pdf file size too big & preview | The difference is because in case of Pdf Printers, printing device commands are translated to pdf commands, giving such compact result. FW pdf generation is based on the convertion of the generated EMF page image into a format like JPEG, and then the pdf's pages are made up using that image.
You can verify this trying to select text from the pdfs.
The best thing you cando is to use a pdf library to generate the pdf, so you'll have the behavoir and performance you want. HaruPdf is my favorite, it can be found in Harbour's contrib directory. |
pdf file size too big & preview | Real (text) translation wmf to pdf file [url:i2s8mhso]http://www.fpdf.org/en/script/script55.php[/url:i2s8mhso]
It is php language... sorry. |
pdf file size too big & preview | Paquito,
this translation is limited to graphics objects, but does not translate the most important (and complex) objects for us in the translation: Text and fonts. And WMF is a dead format, isn't it?
I used ImageToPdf.dll to do such translation in Windows for a while, but never got an acceptable result. The library's author gave all the support he could, but translating font (and fonts names) is a real nightmare.
I'm currently using Haru, and it is the fastest lib you can use, with the best results, in terms of speed, precision of rendering and size of the document. |
pdf file size too big & preview | [url:3d9g31nq]http://fivewin.com.br/index.php?/topic/23934-sumatrapdfexe/[/url:3d9g31nq] |
pdf file size too big & preview | Carlos,
It is likely that this routine does not do the entire job but is there another out there that if you do? It's easy to transform wmf emf.
Yes imgtopdf.dll is a nightmare.
Haru is fine to design all reports from scratch, but when you already have reports running necessary conversion from wmf / emf to pdf.
I once raised the issue of designing all reports to pdf and do not use more or WMF or EMF. There if Haru would fit.
---
Carlos,
Es probable que esa rutina no haga el trabajo completo ¿ pero habrá otra por ahí que si lo haga ? Es facil transformar de wmf a emf.
Sí imagetopdf.dll es una pesadilla. Lo probé y lo descarté.
Haru está bien para diseñar todos los informes desde cero, pero cuando ya tienes informes funcionando es necesario una conversion desde wmf/emf a pdf.
Alguna vez me he planteado el hecho de diseñar todos los informes para pdf y no usar mas ni wmf o emf. Ahí si tendria cabida haru. |
pdf to jpg | buenos dias muchachos
me surge la necesidad de convertir archivo pdf de una sola pagina a jpg
alguien ya lo hizo? existe algun comando para esto?
gracias de antemano |
pdf to jpg | Mira se con FreeImage, és posible, aqui:
[url:322m9uwt]https://freeimage.sourceforge.io/[/url:322m9uwt]
Saludos. |
pdf to jpg | Intente converter a FiveWin the Best, porfa.
[code=fw:1iivkll7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Samples\HBFIMAGE.PRG</span><br /><br /><span style="color: #B900B9;">/* Copyright 2005 Francesco Saverio Giudice <br /> * FreeImage API test file<br /> */</span><br /><br />#require <span style="color: #ff0000;">"hbfimage"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fileio.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"simpleio.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> IMAGES_IN <span style="color: #ff0000;">""</span><br /><span style="color: #00D7D7;">#define</span> IMAGES_OUT <span style="color: #ff0000;">"imgs_out"</span> + hb_ps<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> im, clone, rotated, rotatedEx, rescale, im2, im3<br /> <span style="color: #00C800;">LOCAL</span> centerX, centerY, width, height<br /><br />#if <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> bmpinfo<br /> <span style="color: #00C800;">LOCAL</span> bmpinfoheader<br /> <span style="color: #00C800;">LOCAL</span> iccprofile<br /> <span style="color: #00C800;">LOCAL</span> appo<br />#endif<br /> <span style="color: #00C800;">LOCAL</span> bkcolor<br /> <span style="color: #00C800;">LOCAL</span> cStr<br /><br />#if <span style="color: #000000;">0</span><br /> ? <span style="color: #ff0000;">"Press Alt-D + Enter to activate debug"</span><br /> AltD<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br />#endif<br /> AltD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> hb_vfDirMake<span style="color: #000000;">(</span> IMAGES_OUT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Initialise"</span><br /> fi_Initialise<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Version :"</span>, fi_GetVersion<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Copyright :"</span>, fi_GetCopyrightMessage<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"File type :"</span>, fi_GetFileType<span style="color: #000000;">(</span> IMAGES_IN + <span style="color: #ff0000;">"sample1.jpg"</span> <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Set Error Message (symbol):"</span>, fi_SetOutputMessage<span style="color: #000000;">(</span> @fi_Error<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? fi_Load<span style="color: #000000;">(</span> FIF_JPEG, IMAGES_IN + <span style="color: #ff0000;">"nothere.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Set Error Message (block):"</span>, fi_SetOutputMessage<span style="color: #000000;">(</span> <span style="color: #000000;">{</span>| cFormat, cMessage | fi_Error<span style="color: #000000;">(</span> cFormat, cMessage <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? fi_Load<span style="color: #000000;">(</span> FIF_JPEG, IMAGES_IN + <span style="color: #ff0000;">"nothere.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Load JPEG directly from file"</span><br /> im := fi_Load<span style="color: #000000;">(</span> FIF_JPEG, IMAGES_IN + <span style="color: #ff0000;">"sample1.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Clone image"</span><br /> clone := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Pointer :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Image Type :"</span>, fi_GetImageType<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Color Used :"</span>, fi_GetColorsUsed<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Pixel size :"</span>, fi_GetBPP<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Width :"</span>, fi_GetWidth<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Height :"</span>, fi_GetHeight<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Byte Size :"</span>, fi_GetLine<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Pitch :"</span>, fi_GetPitch<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"DIB Size :"</span>, fi_GetDIBSize<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Dots per Meter X :"</span>, fi_GetDotsPerMeterX<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Dots per Meter Y :"</span>, fi_GetDotsPerMeterY<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Color Type :"</span>, fi_GetColorType<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Red Mask :"</span>, fi_GetRedMask<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Green Mask :"</span>, fi_GetGreenMask<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Blue Mask :"</span>, fi_GetBlueMask<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Transp. Count :"</span>, fi_GetTransparencyCount<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Is Transparent ? :"</span>, fi_IsTransparent<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ?<br /> ? <span style="color: #ff0000;">"Save BMP ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_BMP , im, IMAGES_OUT + <span style="color: #ff0000;">"sample1.bmp"</span>, BMP_DEFAULT <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im, IMAGES_OUT + <span style="color: #ff0000;">"sample1.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save PNG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_PNG , im, IMAGES_OUT + <span style="color: #ff0000;">"sample1.png"</span>, PNG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Save TIFF ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_TIFF, clone, IMAGES_OUT + <span style="color: #ff0000;">"sample1.tif"</span>, TIFF_DEFAULT <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Flip Horizontal ?:"</span>, fi_FlipHorizontal<span style="color: #000000;">(</span> clone <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, clone, IMAGES_OUT + <span style="color: #ff0000;">"horizont.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Flip Vertical ? :"</span>, fi_FlipVertical<span style="color: #000000;">(</span> clone <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, clone, IMAGES_OUT + <span style="color: #ff0000;">"vertical.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Rotate Classic :"</span>, hb_ValToExp<span style="color: #000000;">(</span> rotated := fi_RotateClassic<span style="color: #000000;">(</span> clone, <span style="color: #000000;">90</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, rotated, IMAGES_OUT + <span style="color: #ff0000;">"rotate.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> centerx := fi_GetWidth<span style="color: #000000;">(</span> clone <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span><br /> centery := fi_GetHeight<span style="color: #000000;">(</span> clone <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span><br /> ? <span style="color: #ff0000;">"Rotate Ex :"</span>, hb_ValToExp<span style="color: #000000;">(</span> rotatedEx := fi_RotateEx<span style="color: #000000;">(</span> clone, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, centerx, centery, .T. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, rotatedEx, IMAGES_OUT + <span style="color: #ff0000;">"rotateex.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> width := fi_GetWidth<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> height := fi_GetHeight<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Rescale :"</span>, hb_ValToExp<span style="color: #000000;">(</span> rescale := fi_Rescale<span style="color: #000000;">(</span> im, width / <span style="color: #000000;">2</span>, height / <span style="color: #000000;">2</span>, FILTER_BICUBIC <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, rescale, IMAGES_OUT + <span style="color: #ff0000;">"rescale.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> im2 := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Adjust Gamma ? :"</span>, fi_AdjustGamma<span style="color: #000000;">(</span> im2, <span style="color: #000000;">3.0</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"adjgamma.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> im2 := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Adjust Brightness:"</span>, fi_AdjustBrightness<span style="color: #000000;">(</span> im2, - <span style="color: #000000;">30</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"adjbrigh.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> im2 := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Adjust Contrast ?:"</span>, fi_AdjustContrast<span style="color: #000000;">(</span> im2, - <span style="color: #000000;">30</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"adjcontr.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> im2 := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Invert ? :"</span>, fi_Invert<span style="color: #000000;">(</span> im2 <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"invert.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Red Channel :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im2 := fi_GetChannel<span style="color: #000000;">(</span> im, FICC_RED <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"red.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Green Channel :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im2 := fi_GetChannel<span style="color: #000000;">(</span> im, FICC_GREEN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"green.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Blue Channel :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im2 := fi_GetChannel<span style="color: #000000;">(</span> im, FICC_BLUE <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"blue.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Copy :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im2 := fi_Copy<span style="color: #000000;">(</span> im, <span style="color: #000000;">300</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">800</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im2, IMAGES_OUT + <span style="color: #ff0000;">"copy.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> im3 := fi_Clone<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Paste ? :"</span>, fi_Paste<span style="color: #000000;">(</span> im3, im2, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">70</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im3, IMAGES_OUT + <span style="color: #ff0000;">"paste.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Allocate Bitmap :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im3 := fi_AllocateT<span style="color: #000000;">(</span> FIT_BITMAP, <span style="color: #000000;">320</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save JPG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_JPEG, im3, IMAGES_OUT + <span style="color: #ff0000;">"allocate.jpg"</span>, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Create ERROR :"</span><br /> ? <span style="color: #ff0000;">"Save GIF ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_GIF, im, IMAGES_OUT + <span style="color: #ff0000;">"wrong.gif"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> bkcolor := hb_BChar<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> + hb_BChar<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> + hb_BChar<span style="color: #000000;">(</span> <span style="color: #000000;">205</span> <span style="color: #000000;">)</span> + hb_BChar<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">/* RGBA */</span><br /> ? fi_SetBackgroundColor<span style="color: #000000;">(</span> im, bkcolor <span style="color: #000000;">)</span><br /> ? fi_GetBackgroundColor<span style="color: #000000;">(</span> im, @bkcolor <span style="color: #000000;">)</span><br /> ? hb_StrToHex<span style="color: #000000;">(</span> bkcolor <span style="color: #000000;">)</span><br /><br />#if <span style="color: #000000;">0</span><br /> ? hb_ValToExp<span style="color: #000000;">(</span> fi_GetInfoHeader<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> bmpinfoheader:<span style="color: #000000;">Buffer</span><span style="color: #000000;">(</span> fi_GetInfoHeader<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /> bmpinfoheader:<span style="color: #000000;">Pointer</span><span style="color: #000000;">(</span> fi_GetInfoHeader<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Header :"</span>, hb_ValToExp<span style="color: #000000;">(</span> bmpinfoheader <span style="color: #000000;">)</span><br /> ? bmpinfoheader:<span style="color: #000000;">SayMembers</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span>, .T., .T. <span style="color: #000000;">)</span><br /><br /> bmpinfo:<span style="color: #000000;">Pointer</span><span style="color: #000000;">(</span> fi_GetInfo<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Info :"</span>, hb_ValToExp<span style="color: #000000;">(</span> bmpinfo <span style="color: #000000;">)</span><br /> ? bmpinfo:<span style="color: #000000;">SayMembers</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span>, .T., .T. <span style="color: #000000;">)</span><br /> ? Replicate<span style="color: #000000;">(</span> <span style="color: #ff0000;">"-"</span>, <span style="color: #000000;">60</span> <span style="color: #000000;">)</span><br /><br /> ? ValType<span style="color: #000000;">(</span> bmpinfo:<span style="color: #000000;">Devalue</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hb_traceLog<span style="color: #000000;">(</span> <span style="color: #ff0000;">"bmpinfoheader"</span>, hb_ValToExp<span style="color: #000000;">(</span> bmpinfoheader <span style="color: #000000;">)</span>, ;<br /> infoheader:<span style="color: #000000;">SayMembers</span><span style="color: #000000;">(</span> , .T. <span style="color: #000000;">)</span>, bmpinfoheader:<span style="color: #000000;">Value</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, bmpinfoheader:<span style="color: #000000;">DeValue</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, hb_DumpVar<span style="color: #000000;">(</span> bmpinfoheader:<span style="color: #000000;">Array</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, hb_DumpVar<span style="color: #000000;">(</span> bmpinfoheader:<span style="color: #000000;">acMembers</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> hb_traceLog<span style="color: #000000;">(</span> <span style="color: #ff0000;">"line 179"</span> <span style="color: #000000;">)</span><br /> iccprofile:<span style="color: #000000;">Pointer</span><span style="color: #000000;">(</span> fi_GetICCProfile<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hb_traceLog<span style="color: #000000;">(</span> <span style="color: #ff0000;">"line 181"</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Header :"</span>, hb_ValToExp<span style="color: #000000;">(</span> iccprofile <span style="color: #000000;">)</span><br /> hb_traceLog<span style="color: #000000;">(</span> <span style="color: #ff0000;">"line 183"</span> <span style="color: #000000;">)</span><br /> ? iccprofile:<span style="color: #000000;">SayMembers</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span>, .T., .T. <span style="color: #000000;">)</span><br /><br /> bmpinfoheader:<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#endif<br /><br /> <span style="color: #00C800;">IF</span> ! HB_ISNULL<span style="color: #000000;">(</span> cStr := hb_MemoRead<span style="color: #000000;">(</span> IMAGES_IN + <span style="color: #ff0000;">"sample1.jpg"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Load JPEG from memory"</span><br /> im := fi_LoadFromMemory<span style="color: #000000;">(</span> FIF_JPEG, cStr, JPEG_DEFAULT <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Pointer :"</span>, hb_ValToExp<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Image Type :"</span>, fi_GetImageType<span style="color: #000000;">(</span> im <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Save PNG ? :"</span>, fi_Save<span style="color: #000000;">(</span> FIF_PNG, im, IMAGES_OUT + <span style="color: #ff0000;">"sample2.png"</span>, PNG_DEFAULT <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> ? <span style="color: #ff0000;">"DeInitialise"</span><br /> fi_DeInitialise<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ?<br /> ? <span style="color: #ff0000;">"Look at"</span>, IMAGES_OUT, <span style="color: #ff0000;">"directory for output images"</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #00C800;">STATIC</span> PROCEDURE fi_Error<span style="color: #000000;">(</span> cFormat, cMessage <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"ERROR!..."</span><br /> ? <span style="color: #ff0000;">"Format :"</span>, cFormat<br /> ? <span style="color: #ff0000;">"Message:"</span>, cMessage<br /> ?<br /><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:1iivkll7]
Regards, saludos. |
pdf to jpg | Interesante publicación en la que hiciste comentarios.
[url:fqimiqvy]http://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=39859[/url:fqimiqvy]
Regards, saludos. |
pdf to jpg | Gracias Karina
lo cierto es que no veo tratamiento de pdf donde mencionas |
pdf to jpg | Usa Irfanview |
pdf to jpg | Difícil d+
[url:mukoogrt]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=38265&p=228583&hilit=PDF+A+JPG#p228583[/url:mukoogrt]
Regards, saludos. |
pdf to jpg convertor ? | Hello
I need to print a pdf "with my application" , i can print the pdf as a standalone with silent printing
But i need to be able to preview the pdf at the end of a particular report, i was thinking of converting the pdf to an image format like jpg and add a print page containing the jpg to that report
Does anyone know of a command line utility (silent) that can perform this task (convert the pdf to image format )?
nConvert is a perfect example but i am concerned about licensing as the tool will be shipped with my application,
Thanks for the help,
Richard |
pdf to jpg convertor ? | Richard,
[quote:2rpje75u]But i need to be able to preview the pdf at the end of a particular report, i was thinking of converting the pdf to an image format like jpg and add a print page containing the jpg to that report[/quote:2rpje75u]
I don't understand what you are trying to do.
The standard report preview will look like the PDF if you have your print device set to a PDF printer driver. You do know about PDF printer drivers?
I don't understand why you want an image of the report in another report, or is it the same report? Is the report that you want an image of, only one page long?
Regards,
James |
pdf to jpg convertor ? | James
Maybe i did not express correctly my need
Let us say i have an invoice that is printed with my application, no matter how many pages it takes
Along with the invoice, our clients need to deliver "their customers" with a particular fiscal document , this document is a pdf document
So when i print the invoice , i need to print and preview the pdf document at the same time
I sure know about pdf printer drivers but that is not the need, i also use image2pdf that can convert the report to pdf but i need to print the whole together (invoice + pdf)
Richard |
pdf to jpg convertor ? | Richard,
I use FASTREPORT for this task:
[code=fw:1l5pjf5a]<div class="fw" id="{CB}" style="font-family: monospace;">oFr:<span style="color: #000000;">SetProperty</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"PDFExport"</span>, <span style="color: #ff0000;">"FileName"</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\R</span>eport<span style="color: #000000;">\"</span> + ALLTRIM(str(seconds())) + "</span>.pdf<span style="color: #ff0000;">")<br />oFr:SetProperty("</span>PDFExport<span style="color: #ff0000;">", "</span>OpenAfterExport<span style="color: #ff0000;">", .f.)<br />oFr:SetProperty("</span>PDFExport<span style="color: #ff0000;">", "</span>ShowDialog<span style="color: #ff0000;">",.f.)<br />oFr:PrepareReport()<br /><br />//i need to print and preview the pdf document at the same time<br /><br />oFr:DoExport("</span>PDFExport<span style="color: #ff0000;">") <br /><br /> oFr:ShowReport()<br /><br /><br /></span></div>[/code:1l5pjf5a]
Best regards,
Otto |
pdf to jpg convertor ? | Otto
Thanks but this is not an option to me
My report is quite complex , i use the fwh print engine for it , not easy to port to fastreport
Thanks anyway,
Richard |
pdf to jpg convertor ? | Hello Richard,
Why? I do prepare all my reports in temp-dbf files.
When I convert an existing report I first fetch all the
print commands in a temp-dbf.
This way the reports in Fastreport designer are very easy to create.
I do nearly no calculations, etc. inside the reports.
For example
If I print an invoice I have the totals inside the temp-dbf files.
Best regards,
Otto |
pdf to jpg convertor ? | Richard,
OK, but I still do not understand why you need an image. Also, are you printing the PDF to the printer also? Or, just to a file?
You could print the PDF to a file, then print the PDF to the printer.
You could print to the printer, then print the PDF to a file.
Do you mean you need a preview before printing anything or?
Regards,
James |
pdf to jpg convertor ? | James
Do you mean you need a preview before printing anything or
Yes i need to preview the whole together
Richard |
pdf to jpg convertor ? | Richard,
[quote:37hti338]Yes i need to preview the whole together[/quote:37hti338]
OK, but I am guessing that I still don't understand what the "whole" is. Are you talking about a printout and a PDF that are different things or the same thing?
If they are the same thing, then is seems you just need to do a preview, then print to a print device, then print to a PDF file.
If they are not the same thing, then please explain exactly what they are.
Regards,
James |
pdf to jpg convertor ? | James
The original print out is an invoice generated from my app (fwh tprinter class) , so far so good
I need the ability to add to this invoice (print out) a pdf document before printing , so the final print out will be : original print out + pdf document , this will be the new print out that will be previewed and printed
This is why i need to convert pdf to jpeg , i can create a print out with a jpeg for the add on and then preview
Richard |
pdf to jpg convertor ? | Richard,
OK, so the PDF document is NOT the invoice? What is it? Is it already in existence when the report is printed or is it created when the report is printed.
Why does the PDF need to be a JPG? Are you using the report class or the printer class to generate your report? I'm not sure how you can add an existing PDF to a report that is being generated. Maybe you could add an image as a footer or maybe add a page feed then print the image as the last page.
Regards,
James |
pdf to jpg convertor ? | James
The pdf is not the invoice, it is a constant document that may or may not be present,
[b:3cmziv3m]add a page feed then print the image as the last page[/b:3cmziv3m]
This is exactly what i want to do, and this is why i need to convert the pdf to an image format
I probably have found the solution with "xnview" that allows this conversion, i will place a purchase order today
Regards,
Richard |
pdf to jpg convertor ? | Richard,
You can have a look at [color=#FF0000:2jlbu6nt]GHOSTSCRIPT[/color:2jlbu6nt] ( Freeware ) Version 9.0
There are many Informations in the Internet.
You can convert PDF to any Image-formats from Command-line ( You are looking for )
Inside Your Application You can call it with WINEXEC
Useful Informations :
<!-- m --><a class="postlink" href="http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm">http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm</a><!-- m -->
Sample Commands :
Convert Test.pdf to PNG for better Quality
--------------------------------------------------
WINEXEC ( "gs" -dSAFER -dBATCH -dNOPAUSE -r150 -sDEVICE=png16m -dTextAlphaBits=4 -sOutputFile=page -%02d.png Test.pdf )
Convert Test.pdf to JPG
----------------------------
WINEXEC ( "gs" -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=p%03d.jpg Test.pdf )
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
pdf to jpg convertor ? | Uwe
Thanks, i have already downloaded it and using it now , almost all pdf to image converter need ghostscript for this task.
To be more precise, i have downloaded a lite edition of ghostscrip that has an automatic silent installation process , important for my application no prompts or whatever
And in adjunction i have purchased a license to commercial use of nconvert.exe that allows me all grafic combinations.
So i convert direct from pdf to emf and add to my report the needed pages (the pdf can be in several pages, no problem), working like a charm !
Great product,
Richard |
pdf viewer | can anyone tell me a simple way to show/view a pdf file from within a windows program
my earlier way with Sumatrapdf.exe don't work anymore (in windows 7?) |
pdf viewer | my earlier simple way of viewing was for exemple :
WINEXEC("Sumatrapdf.exe test.pdf) |
pdf viewer | Try using:
ShellExecute( ,"open", "test.pdf",,,1 ) |
pdf viewer | Antonio,
Thanks for your fast support but it does not work with Shellexecute()
Should there be an other small pdf viewer that works (since 10 years) like Sumatrapdf
I think the actual Sumatra version is not (yet) compatible with Win 7 or 8
Gracias por su ayuda
José |
pdf viewer | [code=fw:gge72ntd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> NFEVisualSUM := <span style="color: #ff0000;">"C:<span style="color: #000000;">\N</span>FEPDF<span style="color: #000000;">\"</span>+"</span>CCE<span style="color: #ff0000;">"+ALLTRIM( STR( nNumNfeSUM ) )+"</span>.PDF<span style="color: #ff0000;">"<br /><br /> // LANG = LANGUAGE<br /> WinExec( cDirExe+"</span>sumatra\sumatrapdf.exe -reuse-instance -lang <span style="color: #0000ff;">pt</span> <span style="color: #ff0000;">"+NFEVisualSUM) //-restrict -fullscreen<br /></span></div>[/code:gge72ntd]
|
pdf viewer | It's still work for me even Windows 10.
[url:2hcz4hn8]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26194&hilit=dutch+pdf&start=15#p143855[/url:2hcz4hn8] |
pdf viewer | You can open any PDF using Chrome, so if Chrome is installed then it can be used as a PDF viewer |
pdf viewer | [quote="dutch":n85hq8ih]It's still work for me even Windows 10.
[url:n85hq8ih]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26194&hilit=dutch+pdf&start=15#p143855[/url:n85hq8ih][/quote:n85hq8ih]
Hallo Dutch
Can you show me a simple example with sumatrapdf
Kind regards |
pdf viewer | Hallo pdf viewers
My old easy way of pdf viewing with sumatrapdf.exe (version 2.2. and later) works (again) by deleting the Adobe Acrobat reader program so that sumatrapdf.exe becomes the default pdf reader
the code is simply: WINEXEC("sumatraPDF.exe ...\test.pdf")
Kind regards and a Sunny WE |
pdf417 | someone has a routine for it or Vb or delphi I can translate in barlib func ? |
pdf417 | Hola Amigos,
Alguna manera de generar código PDF417 ??
Salu2 |
pdf417 | [url:24gvfvnm]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19030&start=30[/url:24gvfvnm]
[url:24gvfvnm]http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=7164[/url:24gvfvnm] |
pdfcreator | estoy intentando probar PDFcreator, ya modifique el rpreview en el menu y el icono para mandar a PDF, ya use la funcion:
static function PrintPdf()
local oPdfApp := CreateObject("PDFCreator.clsPDFCreator")
local cASD := oPdfApp:cOption("AutoSaveDirectory" )
local cASF := oPdfApp:cOption("AutoSaveFileName" )
IF oPdfApp = NIL
msgstop("No esta instalado el programa PDFCreator !!","Error ...")
Return NIL
ENDIF
oPdfApp:cOption("UseAutoSave", 1 )
oPdfApp:cOption("UseAutoSaveDirectory", 1 )
oPdfApp:cOption("AutoSaveStartStandardProgram", 1 )
oPdfApp:cOption("AutoSaveDirectory", "C:\PDV" )
oPdfApp:cOption("AutoSaveFileName" , "Mypdf" )
oPdfApp:cSaveOptions()
*hMeta := oMeta1:hMeta
*oPdfApp:cPrintFile(hMeta)
// print something
oPdfApp:cPrintPDFCreatorTestpage()
oPdfApp:cOption("AutoSaveDirectory", cASD )
oPdfApp:cOption("AutoSaveFileName" , cASF )
oPdfApp:cSaveOptions()
oPdfApp = nil
return (nil)
como ven esta funcion la puse en el rpreview y desde ahi mando a PDF, intente mandar a PDF la pagina actual y un test, peroooo no genera ningun archivo, ya lo busque por la ruta que le especifico y por todo el disco duro y nada
me falta algo? alguien que la tenga funcionando que me ayude?
gracias
salu2
paco |
pdfcreator | A mi me funciona así
[code:1904a9f8] oReg:=TReg32():New(HKEY_CURRENT_USER,"SOFTWARE\PDFCreator\Program")
oReg:Set("AutosaveDirectory","c:\pruebas")
oReg:Set("AutosaveFilename",ccodpro+"-"+cliqui)
oReg:Close()
MsgWait( "Cliente "+ccodpro+" Factura "+cliqui, "GENERANDO PDF", 1 )
msginfo('Cliente '+ccodpro+' Factura '+cliqui,'GENERANDO PDF')
[/code:1904a9f8]
Y si ya tienes registrado correctamente el pdfcreator, y en el registro de windows has modificado directamente sus parámetros, simplemente así:
[code:1904a9f8] npdf:=ccodpro+cliqui
PRINT oPrn NAME npdf TO "PDFCreator" // FROM USER //PREVIEW
[/code:1904a9f8]
Algo importante: que no entiendo la explicación, si no pongo el msgwait no funciona.
A ver si te ayuda
Saludos
Jose Luis |
pdfcreator | jose luis gracias por la ayuda, de hecho no quiero tener fijo en el registro la ruta, esta quiero que sea aleatoria en cada pc y que el usuario tenga la oportunidad de elegir el nombre y la ruta, de hecho existe esa pantalla en el mismo sistema del PDFCreator, yo no uso la opcion PRINT... TO PDFCreator yo uso oPrn:setup() y en esta opcion cuando elijo la PDFCreator el sistema me dice que no tengo ninguna impresora seleccionada y no imprime, pero en esta opcion como lo tengo
oPdfApp:cOption("AutoSaveDirectory", "C:\PDV" )
oPdfApp:cOption("AutoSaveFileName" , "Mypdf" )
oPdfApp:cSaveOptions()
msginfo() -> aqui me voy al registro de windows a ver si me hizo el cambio que le puse arriba y el registro no esta cambiado, entonces quiere decir que las lineas de arriba no estan funcionando...
y lo que no quiero es dejar la ruta fija en el registro,,
salu2
paco |
pdfcreator | Desintale y volvi a instalar el PDFCreator y cuando selecciono la impresora en el oPrn:Setup() ya me la reconoce, pero si selecciono la impresora normal y luego desde mi preview lo mando guardar a PDF no me lo genera
Adjunto la imagen del preview
<!-- m --><a class="postlink" href="http://img80.imageshack.us/img80/2184/pdfdn9.jpg">http://img80.imageshack.us/img80/2184/pdfdn9.jpg</a><!-- m -->
salu2
paco |
pdfcreator | Paco q ondas,
has probado PAPERLES printer ?
tambien con el setup elijes la impresora virtual,
y tambien te pide el nombre y en que carpeta quieres los resultados,
y no necesitas modificar nada a los reportes de tu sistema.
saludos.. |
pdfcreator | Francisco,
Yo utilizo el primer ejemplo que te puse, dentro de un bucle, y los valores no son fijos en el registro, sino que cada impresión, graba en el registro una ruta y unos valores.
Con ese ejemplo, si estoy imprimiendo facturas, enruto el pdf a \facturas, y si estoy con albaranes a \albaranes, es decir cada documento, con
[code:1hn4732g] oReg:=TReg32():New(HKEY_CURRENT_USER,"SOFTWARE\PDFCreator\Program")
[/code:1hn4732g]
Lo que hace es grabar en el registro cómo va a ser esa impresion, y después la imprime.
Saludos
Jose Luis |
pdfcreator | Jose Luis,
algun ejemplo mas full para probar ?
claro si es que se puede,
saludos.. |
pdflite | Hola estoy usando la librería pdflib.lib y en la última versión de xharbour veo que ya no está y si está pdflite.lib. Buscando por internet vi que hay que compilar también png.lib, ttif.lib y jpge.lib, pero al hacerlo me dice que faltan las funciones
Error: Unresolved external '_LLANDSCAPE' referenced from C:\XHARBOUR\LIB\PDFLITE.LIB|pdf1
Error: Unresolved external '_HB_FUN_CALCDATA' referenced from C:\XHARBOUR\LIB\PDFLITE.LIB|pdf1
0 Files, 0 Warnings, 2 Errors
Tiempo de compilación: 0.00s Tiempo de enlazado: 0.44s Tiempo total: 0.54s
saben en dónde estan incluídos estas funciones
Gracias |
pdflite | Nadie tiene una idea de que es necesario??
Luis |
pdflite | Hola,
¿Has probado a preguntar en el foro de XHarbour?. Realmente no es un tema de Fivewin. |
pedido de MEJORAS para proximas versiones. | No se si a muchos le ha tocado tener muchos GETS y antes de cerrar una ventana quieren saber si esos GETS fueron o no modificasdos.
Estaria bueno (ignoro si ya no existe esto) que con tan solo consultar a una variable de los GETS como ser lModify saber si ese campo
fue o no modificado teniendo en cuenta que:
si al principio el dato era "hola" y al salir el dato sigue siendo "hola" (aunque el usuario borro el dato y volvio a escribir "hola") ese GETS en lModify sea .f.
hoy por hoy lo que hago es poner en oGets:bChange:= ::lModify:= .t. PERO no contempla lo de arriba.
gracias. |
pedido de MEJORAS para proximas versiones. | Usa la DATA uOriginalValue para comparar el valor que en ese momento tiene el get con el contenido de la DATA que te menciono
Me vas contando |
pedido de MEJORAS para proximas versiones. | [quote="cnavarro":vvrlied6]Usa la DATA uOriginalValue para comparar el valor que en ese momento tiene el get con el contenido de la DATA que te menciono
Me vas contando[/quote:vvrlied6]
buen dia.
hice una prueba pero msgbox(oGets:uOriginalValue) no me devolvio nada, oGets lo defino asi:
[code=fw:vvrlied6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> ogets <span style="color: #0000ff;">var</span> vgets <span style="color: #0000ff;">id</span> ...</div>[/code:vvrlied6]
luego hago una llamada a un metodo para pasarle lo datos "originales"
[code=fw:vvrlied6]<div class="fw" id="{CB}" style="font-family: monospace;">vgets:= domicilio<br /> </div>[/code:vvrlied6]
y antes de guardar hice:
[code=fw:vvrlied6]<div class="fw" id="{CB}" style="font-family: monospace;">msgbox<span style="color: #000000;">(</span>oGets<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">uOriginalValue</span><span style="color: #000000;">)</span><br /> </div>[/code:vvrlied6]y no me devolvio nada. voy a seguir viendo a ve que se puede hacer. |
pedido de MEJORAS para proximas versiones. | Gustavo,
[code=fw:11u2x7pz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />vgets:= domicilio <span style="color: #B900B9;">// és un FIELD?</span><br /> </div>[/code:11u2x7pz]
se si:
[code=fw:11u2x7pz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />vgets := <span style="color: #000000;">(</span> cAlias <span style="color: #000000;">)</span>->domicilio <span style="color: #B900B9;">// nombre del BD</span><br /> </div>[/code:11u2x7pz]
Regards, saludos. |
pedido de MEJORAS para proximas versiones. | Hola.
No es una DB |
pedido de MEJORAS para proximas versiones. | Gustavo, no soy capaz de entender lo que realmente quieres. ¿Le sería posible crear un DEMO.RAR o .ZIP completo y ponerlo a disposición en MegUpload para probarlo?
Salu2 |
pedido para versiones futuras | Hola.
Ya he tocado este tema y me han dado respuestas que no me convencieron al respecto.
En version anteiror de la fw vieja que tenia la 2.1 cuando visualizabas un dialogo creado con pellesC (en mi caso el que uso) el tamaño de las fuentes se mantenian tal cual en pellesC se mostraban.
Ahora que tengo esta version la 2022 creo que es no pasa lo mismo, en pellesC tiene un tamaño que visualmente cuando se muestra en ejecucion el dialogo lo cambia, agranda la tipografia.
pellesC
[url:18ld3w6w]https://drive.google.com/file/d/1DP-F6WrfuYRV_-S9BRptYXG8RYGO4ZtQ/view?usp=sharing[/url:18ld3w6w]
En ejecucon
[url:18ld3w6w]https://drive.google.com/file/d/1EnTlJHl-rsCObZQaOs56jhMVRbb3IAch/view?usp=sharing[/url:18ld3w6w] |
pedido para versiones futuras | Gustavo,
Estamos revisándolo, gracias |
pedido para versiones futuras | Hola Gustavo.
Yo utilizo el ResEdit y no tengo el problema que argumentas en los dialogos creados con el editor de recursos.
Yo utilizo fuente Arial 10. y se ve bastante grande., y en el codigo no utilizo FONT , mira como queda
[img:19ew6hi2]https://i.ibb.co/mT5gmmW/aputrab.png[/img:19ew6hi2]
Yo se que utilizas xmate , a mi una vez me paso cuando lo utilizaba que se veian como tu comentas despues de realizar modificaciones en el codigo.
Yo lo solucione borrando todos los ficheros de la compilacion, fichero .res. Y volviendo a rehacer el proyecto con el mismo xmate.
Te lo digo por si quieres probarlo, a lo mejor es un tema puntual que me paso a mi y no tiene nada que ver contigo.
Saludos.
Jose. |
pedido para versiones futuras | el tema es asi.
el mismo proyecto compilado con fw2.1 probado y todo da un tamaño,
y con el 20.02 de ahora me hace es problema con harbour. |
pedido para versiones futuras | con xmate, como agregas la linea del resedit para que lo compile?
gracias. |
pedido para versiones futuras | Gustavo.
Supongo que te refireres a añadir el archivo .rc generado con el ResEdit. ?
Yo simplemente lo añadia al proyecto como lo que es, un archivo .rc
y el fichero .env que utilizaba se encarga del resto.
mira en el apartado de C existe esta linea.
[quote:28ax5utm]
C_RC_COMMAND=%C_BIN_INSTALL%\rc.exe -r -i%C_INC_INSTALL%\windows\sdk -I%C_INC_INSTALL%\windows\crtl -fo%RES% %RC%
[/quote:28ax5utm]
Que es la que se encarga del asunto.
Sino es eso, especifica un poco mas, por favor.
Si quieres te adjunto todo el archico .env que utilizaba.
Saludos.
Jose. |
pedido para versiones futuras | To All
I use ResEdit as well and save all my forms as .rc .... I use the batch file rc2dll32 to compile all my .rc forms to .res and all I to is add the .res to my link list .. As you can see below I am using Borland BCC74 32 bit.
Here are my modification to Rc2dll32.bat
[code=fw:2i2lyht1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@Echo Off<br /><br />DEL DCareW32.RC<br />DEL DCareW32.RES<br /><br />COPY *.RC DCareW32.RC<br /><br />C:\BORLAND\BCC74\BIN\brcc32 -iC:\BORLAND\BCC74\include -v -iC:\BORLAND\BCC74\include\dinkumware -iC:\BORLAND\BCC74\include\windows\sdk DCareW32.Rc >Rick.Txt<br /><br />del *.iL?<br />del *.map<br />del *.obj<br />del *.~rc<br />del *.rws<br />:<span style="color: #000000;">del</span> *.res<br />del *.tds<br />echo done!<br /><br /><br /><br /> </div>[/code:2i2lyht1]
Rick Lipkin |
pedido para versiones futuras | claro, yo en el proyecto pongo el .res no el .rc |
pedido para versiones futuras | Estimados amigos:
Podeis hacerlo como querais compilar el .rc y luego colocar el res en el proyecto de todas maneras, no lo he probado pero creo que debe de funcionar igual incluyendo el .res, pero repito que no es necesario, colocando el .rc te lo compila y te lo incluye en el ejecutable final.
Saludos.
Jose. |
pedido para versiones futuras | Can you please send me one simple and small pellesC rc ( not res ) file giving you the problem?
It would be nice if you can also send a small prg file using the dialog.
my email
nageswaragunupudi [at] gmail [dot] com |
pego el codigo completo. no me actualiza el xbrowse... | [code=fw:33qzk6dn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"tdolphin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dtpicker.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00D7D7;">#DEFINE</span> CONSULTA ;<br /> <span style="color: #ff0000;">"select "</span> +;<br /> <span style="color: #ff0000;">"tbfacturas.fecha as c1, "</span> +;<br /> <span style="color: #ff0000;">"tbfacturados.descripcion as c2, "</span> +;<br /> <span style="color: #ff0000;">"tbfacturados.cantidad as c3, "</span> +;<br /> <span style="color: #ff0000;">"tbfacturados.precio as c4, "</span> +;<br /> <span style="color: #ff0000;">"tbfacturados.idfactura as c5, "</span>+;<br /> <span style="color: #ff0000;">"tbfacturas.id as c6 "</span>+;<br /> <span style="color: #ff0000;">"from "</span> +;<br /> <span style="color: #ff0000;">"tbfacturas "</span> +;<br /> <span style="color: #ff0000;">"left join tbfacturados "</span> +;<br /> <span style="color: #ff0000;">"on tbfacturas.id = tbfacturados.idfactura "</span> +;<br /> <span style="color: #ff0000;">"where tbfacturas.fecha = "</span> + ClipValue2SQL<span style="color: #000000;">(</span>vGets<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">CLASS</span> TCaja<br /> <span style="color: #00C800;">DATA</span> oCnx<br /> <span style="color: #00C800;">DATA</span> oQry<br /> <span style="color: #00C800;">DATA</span> oBrw<br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">(</span>oCnx<span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> browser<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> mostrar<span style="color: #000000;">(</span>oQry<span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> cargarDatos<span style="color: #000000;">(</span>vGets<span style="color: #000000;">)</span><br /><br />END <span style="color: #00C800;">CLASS</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">(</span>oCnx<span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oCnx</span>:= oCnx<br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">Self</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> browser<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg,;<br /> oGets:= Array<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>,;<br /> vGets:= Array<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>,;<br /> oBtns,;<br /> oFont,;<br /> oFont1<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;">""</span> bold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ebrima"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br /><br /> vGets<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:=Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">cargarDatos</span><span style="color: #000000;">(</span>vGets<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"CAJA"</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> DTPICKER oGets<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> vGets<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oGets<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> vGets<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>;<br /> <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"Todo"</span>, <span style="color: #ff0000;">"Cta Cte"</span>, <span style="color: #ff0000;">"Efectivo"</span><span style="color: #000000;">}</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> ::<span style="color: #000000;">oBrw</span>:= TXBROWSE<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">setdolphin</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oQry</span>, .T., .F., <span style="color: #000000;">{</span><span style="color: #ff0000;">"c1"</span>, <span style="color: #ff0000;">"c2"</span>, <span style="color: #ff0000;">"c3"</span>, <span style="color: #ff0000;">"c4"</span><span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> WITH OBJECT ::<span style="color: #000000;">oBrw</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">5</span><br /> :<span style="color: #000000;">lKinetic</span> := .F.<br /> :<span style="color: #000000;">ltransparent</span> := .F.<br /> :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">21</span><br /> :<span style="color: #000000;">lHScroll</span> := .F.<br /> :<span style="color: #000000;">lVScroll</span> := .T.<br /> :<span style="color: #000000;">nheaderHeight</span> := <span style="color: #000000;">23</span><br /> :<span style="color: #000000;">lRecordSelector</span> := .F.<br /> :<span style="color: #000000;">lAllowColSwapping</span> := .F.<br /> :<span style="color: #000000;">lColDividerComplete</span> := .f.<br /> :<span style="color: #000000;">nRowDividerStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br /> :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">4</span><br /><br /> WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">odatafont</span> := oFont<br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Id"</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">100</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">oheaderfont</span> := oFont<br /> :<span style="color: #000000;">oheaderfont</span> := oFont<br /> END with<br /><br /> WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Productos"</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">100</span><br /> :<span style="color: #000000;">oheaderfont</span> := oFont<br /> :<span style="color: #000000;">odatafont</span> := oFont1<br /> END with<br /><br /> WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Cantidad"</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">100</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">oheaderfont</span> := oFont<br /> :<span style="color: #000000;">odatafont</span> := oFont1<br /> END with<br /><br /> WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Precio"</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">100</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">oheaderfont</span> := oFont<br /> :<span style="color: #000000;">odatafont</span> := oFont1<br /> END with<br /><br /> END WITH<br /><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">createfromresource</span><span style="color: #000000;">(</span><span style="color: #000000;">205</span><span style="color: #000000;">)</span><br /><br /> oBtns:<span style="color: #000000;">bAction</span>:= <span style="color: #000000;">{</span> || ::<span style="color: #000000;">cargarDatos</span><span style="color: #000000;">(</span>vGets<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> mostrar<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">Eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">skip</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> END <span style="color: #00C800;">DO</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> cargarDatos<span style="color: #000000;">(</span>vGets<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> query ::<span style="color: #000000;">oqry</span> CONSULTA<br /><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oBrw</span> != <span style="color: #00C800;">NIL</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">mostrar</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /> </div>[/code:33qzk6dn] |
pego el codigo completo. no me actualiza el xbrowse... | ninguna solucion? |
pellesC | Estimados
Tengo el siguiente problema:
Cuando agrego un bitmap al recurso .res y compilo me sale el siguiente error
...mi archivo bc
...
c:\borland\bcc55\lib\cw32.lib +
c:\borland\bcc55\lib\import32.lib,, +
dbf\system\wcta.res
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Access violation. Link terminated.
Error RMAKE/R2001 Exit 2: 'c:\borland\bcc55\bin\ilink32 /aa /Gn /Tpe /s @b32.b
Y se lo saco el bitmap funciona bien, tiene alguna restriccion
alguien le a salido este error y lo ha solucionado
Saludos
Patricio |
pellesC | Hola Patricio,
a mí también me ha ocurrido. Añadiendo bitmaps a un fichero de recursos. Tuve que quitar unos bitmaps para que me dejase de dar ese error.
Saludos |
pellesC | Tienes que compilar con el compilador de recursos de PellesC hazlo de la siguiente manera
C:\Archiv~1\PellesC\Bin\porc.exe /IC:\Archiv~1\PellesC\Include /IC:\Archiv~1\PellesC\Include\Win /foarchivorecursos.res archivosrecursos.rc
Saludos |
pellesC | [quote="gabo":173w51hs]Tienes que compilar con el compilador de recursos de PellesC hazlo de la siguiente manera
C:\Archiv~1\PellesC\Bin\porc.exe /IC:\Archiv~1\PellesC\Include /IC:\Archiv~1\PellesC\Include\Win /foarchivorecursos.res archivosrecursos.rc
Saludos[/quote:173w51hs]
Hola, Perdona que te contradiga pero si está usando .RES
no es necesario que use el compilador de PellesC |
pellesC | Estimados
Lo he solucionado creando un nuevo RES
...mi archivo bc
...
c:\borland\bcc55\lib\cw32.lib +
c:\borland\bcc55\lib\import32.lib,, +
dbf\system\wcta.res+
dbf\system\nuevorc.res
Esperemos que dure varios años <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Saludos
Patricio |
pending: xbrowse() translate | Hi,
At xbrowse() function, this is not translated using FW language traslation:
[code=fw:4bppmzah]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> lAutoSort<br /> nRow := oBrw:<span style="color: #000000;">nTop</span><br /> oBrw:<span style="color: #000000;">nTop</span> += <span style="color: #000000;">14</span><br /><br /> nFilter := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lIncrFilter</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> nSeekWild := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lSeekWild</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> @ nRow - <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">COMBOBOX</span> nFilter <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">60</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Search For"</span>, <span style="color: #ff0000;">"Show Only"</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">lIncrFilter</span> := nFilter > <span style="color: #000000;">1</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ nRow - <span style="color: #000000;">1</span>, <span style="color: #000000;">72</span> <span style="color: #0000ff;">COMBOBOX</span> nSeekWild ;<br /> <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">60</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">of</span> oDlg ;<br /> <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Starting With"</span>, <span style="color: #ff0000;">"Containing"</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lSeekWild</span> := <span style="color: #000000;">(</span> nSeekWild > <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ nRow, <span style="color: #000000;">135</span> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">prompt</span> oBrw:<span style="color: #000000;">cSeek</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_RED,CLR_YELLOW<br /> ATail<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">155</span><br /><br /> <span style="color: #00C800;">endif</span></div>[/code:4bppmzah]
Thank you. |
pending: xbrowse() translate | Here is the spanish translation for FWStrings:
Search For
Buscar por:
Show Only
Mostrar sólo:
Starting With
Comienza con:
Containing
Contiene: |
pending: xbrowse() translate | PLEASE ADD fwstring on each word sample
@ nRow - 1, 10 COMBOBOX nFilter SIZE 60, If( IsAppThemed(), 14, 60 ) PIXEL OF oDlg ;
[b:1ekgh2mc] ITEMS { Fwstring("Search For"), FwString("Show Only") } ;[/b:1ekgh2mc] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.