|
Débuté par ACP, 25 fév. 2008 12:27 - 7 réponses |
| |
| | | |
|
| |
Posté le 25 février 2008 - 12:27 |
Hi all,
I have a strange issue with an invoice report with a JPG as a background. The jpg is printed with the report and I put my controls (name, address, city, details...) in the report header and body In my develop pc it is all ok. In costumer pc, controls are printed in other positions, about 1 cm in high. In preview it is perfect
I think the problem is the printer driver, but how can I create a report right for all pcs? Any suggestions? Thanks --
Andrea Chiadò Piat
BIT INFORMATICA
Via Giordano 7
10073 - Ciriè (TO)
Tel 011 9205455
Fax 011 9210394
Mob 348 6017526 |
| |
| |
| | | |
|
| | |
| |
Posté le 25 février 2008 - 13:29 |
Hi Andrea...
It's perfectly normal and due to the physical margins of your printer (ie the area that is not printable)...
The report editor is not able to help you for that case. You'll need to calculate the physical margins of your printer while printing, then use iprint syntaxes to print in absolute coordinates, etc...
In case you don't want to spend the time reinventing the wheel, all this is detailed in my printing chapter in my WinDev Video Course, and all methods necessary are available in the clPrint class coming with it...
Best regards
Fabrice
>Hi all,
I have a strange issue with an invoice report with a JPG as a background.
>The jpg is printed with the report and I put my controls (name, address,
city, details...) in the report header and body
>In my develop pc it is all ok.
In costumer pc, controls are printed in other positions, about 1 cm in high.
>In preview it is perfect
I think the problem is the printer driver, but how can I create a report
>right for all pcs?
Any suggestions?
>Thanks
--
>Andrea Chiadò Piat
BIT INFORMATICA
>Via Giordano 7
10073 - Ciriè (TO)
>Tel 011 9205455
Fax 011 9210394
>Mob 348 6017526 |
| |
| |
| | | |
|
| | |
| |
Posté le 25 février 2008 - 15:30 |
G'day Andrea
Most laser printers will not print to within .25 to .40 of an inch for top, left and right hand margins and as much as .70 of an inch for the bottom margin.
The default border in a Windev report is .394 of an inch all round so you may have some success by defining an average report page size for this report, with larger top and edge margins and especially a larger bottom margin as this may enable printing on most laser printers.
You can do this in the menu option: Report > description > format
Regards
Al
>Hi all,
I have a strange issue with an invoice report with a JPG as a background.
>The jpg is printed with the report and I put my controls (name, address,
city, details...) in the report header and body
>In my develop pc it is all ok.
In costumer pc, controls are printed in other positions, about 1 cm in high.
>In preview it is perfect
I think the problem is the printer driver, but how can I create a report
>right for all pcs? |
| |
| |
| | | |
|
| | |
| |
Posté le 25 février 2008 - 15:54 |
Fabrice Harari ha scritto:
Hi Andrea... It's perfectly normal and due to the physical margins of your printer (ie the area that is not printable)... The report editor is not able to help you for that case. You'll need to calculate the physical margins of your printer while printing, then use iprint syntaxes to print in absolute coordinates, etc... In case you don't want to spend the time reinventing the wheel, all this is detailed in my printing chapter in my WinDev Video Course, and all methods necessary are available in the clPrint class coming with it... Best regards Fabrice Hi Fabrice,
but the printer is not cutting a part of my report. What appen is that while in preview "name" is in the correct box (relative to jpg background), but printing "name" is highest in position compared to the jpg. I have this problem if I push PDF button in preview also. Sorry for my bad bad english. --
Andrea Chiadò Piat
BIT INFORMATICA
Via Giordano 7
10073 - Ciriè (TO)
Tel 011 9205455
Fax 011 9210394
Mob 348 6017526 |
| |
| |
| | | |
|
| | |
| |
Posté le 25 février 2008 - 16:49 |
Hi Andrea...
unfortunately, positions described in a report are relative to the physical margins... Which explains why the same report on different printer isn't exactly the same... And that's why you have to calculate the physical margin and print in absolute position (ie by substracting the physical margin to the position you really want)...
Lots of fun, and not possible in the report editor, only when using iprint, iprintline, etc
best regards
Fabrice
ACP wrote:
Fabrice Harari ha scritto: Hi Andrea... It's perfectly normal and due to the physical margins of your printer (ie the area that is not printable)... The report editor is not able to help you for that case. You'll need to calculate the physical margins of your printer while printing, then use iprint syntaxes to print in absolute coordinates, etc... In case you don't want to spend the time reinventing the wheel, all this is detailed in my printing chapter in my WinDev Video Course, and all methods necessary are available in the clPrint class coming with it... Best regards Fabrice Hi Fabrice, but the printer is not cutting a part of my report. What appen is that while in preview "name" is in the correct box (relative to jpg background), but printing "name" is highest in position compared to the jpg. I have this problem if I push PDF button in preview also. Sorry for my bad bad english. |
| |
| |
| | | |
|
| | |
| |
Posté le 26 février 2008 - 23:10 |
You could also send the report to a PDF file (if you aren't
printing directly to the printer) and program around that.
I've found this issue with the Windev print preview window
from time to time.
Georgio
>Hi all,
I have a strange issue with an invoice report with a JPG as a background.
>The jpg is printed with the report and I put my controls (name, address,
city, details...) in the report header and body
>In my develop pc it is all ok.
In costumer pc, controls are printed in other positions, about 1 cm in high.
>In preview it is perfect
I think the problem is the printer driver, but how can I create a report
>right for all pcs?
Any suggestions?
>Thanks
--
>Andrea Chiadò Piat
BIT INFORMATICA
>Via Giordano 7
10073 - Ciriè (TO)
>Tel 011 9205455
Fax 011 9210394
>Mob 348 6017526 |
| |
| |
| | | |
|
| | |
| |
Posté le 27 février 2008 - 00:13 |
Hi,
Not sure about this (and I don't have time to look into it right now), but for most print output there is an iGeneric option available which doesn't take the installed printer driver into consideration and thus makes the output always identical. You might have a look into this in the online help.
Just my 2 cents,
Peter
>You could also send the report to a PDF file (if you aren't
printing directly to the printer) and program around that.
>I've found this issue with the Windev print preview window
from time to time.
>Georgio
>>I have a strange issue with an invoice report with a JPG as a background.
The jpg is printed with the report and I put my controls (name, address,
>>city, details...) in the report header and body
In my develop pc it is all ok.
>>In costumer pc, controls are printed in other positions, about 1 cm in high.
>>I think the problem is the printer driver, but how can I create a report
>>Any suggestions?
>>--
>>BIT INFORMATICA
>>10073 - Ciriè (TO)
>>Fax 011 9210394
|
| |
| |
| | | |
|
| | |
| |
Posté le 27 février 2008 - 10:46 |
Peter Holemans ha scritto:
Hi,
Not sure about this (and I don't have time to look into it right now), but for most print output there is an iGeneric option available which doesn't take the installed printer driver into consideration and thus makes the output always identical. You might have a look into this in the online help.
Just my 2 cents,
Peter
You could also send the report to a PDF file (if you aren't printing directly to the printer) and program around that. I've found this issue with the Windev print preview window from time to time. Georgio Hi Georgio and Peter, Thanks for your suggestions, The iGeneric is used for pdf print only. I tried it and the result is correct in position but, I dont know why, the quality of background jpg in pdf is very low. I have to try with other image format (gif, png etc) to see if results are the same. Another idea is to leave the report modifiable with "report and queries". I never tried it. Bye
--
Andrea Chiadò Piat
BIT INFORMATICA
Via Giordano 7
10073 - Ciriè (TO)
Tel 011 9205455
Fax 011 9210394
Mob 348 6017526 |
| |
| |
| | | |
|
| | | | |
| | |
|