[Lazarus] Error rebuilding Lazarus IDE

Horacio Jamilis hjamilis at pymesoft.com.ar
Sat May 3 19:46:59 CEST 2008


Lee Jenkins wrote:
> Lee Jenkins wrote:
>> Stephano wrote:
>>> In any case, you can test the raw mode printing without using any 
>>> printer at all. Just set the port of the Generic Text Printer to File, 
>>> print using your routine, and inspect the file. That would show you 
>>> whether it is your routine's fault or the printer's (which could be set 
>>> to page mode).
>> I tried this and after setting up the printer to print to file, I was able to 
>> print a test page and it came out ok in the file.
>>
>> However, once that was done, I tried printing using the rawmodetest.lpi project 
>> and I don't get the dialing asking for the file location and windows reports a 
>> printer error.
>>
>> Is there somewhere in code that I should indicate the file location?
>>
>> Never did this before, sorry.
>>
> 
> The problem was setting up the port as a file path (when setting up the printer) 
> and that worked well to print to the file, but it doesn't print to the actual 
> printer from what I can tell and I'm wondering if there is extra steps necessary 
> to print to a networked printer, but that seems doubtful to me.
> 
I now understand that you have a remote printer on a networked PC, and 
you want to control it from your local PC.

I have not understood what you have done and the results you got. So 
with the printer connected to the remote PC, try each of the following 
tests and report back the results. Note that each test is based on the 
initial setup, ie changes done for each test should be undone for the 
next test.

1. Print a test page from your remote PC.
2. Print a test page from your local PC.
3. Set the Generic Printer Driver on your local PC to print to file and 
use your routine to print.
4. Set the Generic Printer Driver on your remote PC to print to file and 
use your routine to print.

If all the above tests succeed, I see no reason that would prevent you 
from printing the way you want, though I have never tried this setup.

Stephano




More information about the Lazarus mailing list