|
| [WD20]Image not printing to form. |
| Iniciado por guest, 20,abr. 2015 23:30 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 20,abril 2015 - 23:30 |
I have a report based on an image file that takes up one page. I have an Iteration block that takes up another whole page. This block is an internal report that points to another report based on an image file. Everything was working fine until I upgraded to WD20. Now the first page prints, but none of the Iteration block pages print with the image. They print with the data I pass them, just without the background image.
I've tried renaming the file. I've tried using other image files. I've tried restarting the IDE and my PC. Anyone come across anything like this? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 14:26 |
Hi Curtis,
If you think it can be a compilation problem, close the project and delete the folder named [your_project].cpl and open your project again for it to recompile.
But since in version 20 there are new features concerning the background images, I suspect that something you were doing is in conflict with the new features. So just take a look at that in order to try to fix it. <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/index.awp?2510056">http://doc.windev.com/en-US/index.awp…</a>
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 15:29 |
Forgot to mention I had already tried the cpl folder trick. Good find on the new feature. I tried getting it to work, but I failed. I think this is a bug with the pre-release.
// This didn't work MyReport..BackgroundImage = "C:\MyImage.pdf" MyReport..BackgroundImagePrinted = True |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 15:51 |
Hi Curtis,
Is the page actually printed? (I mean, there is data, but only the background image not printed?) Is it possible that you have a background color in your fields or report sections that would be white and would hide the background image?
Make sure your code is in the "Pre-print" even of your page. The ..BackgroundImage property must be initialize very early. (I do not know if the online documentation has been updated on that point, because I had this issue before and the Free Technical Support informed me that this is where it should be and that the help would be updated.)
You can also try with an image, easily done with PDFExtractPage("C:\MyImage.pdf",1). Just to test if there is an issue with PDFs.
The quick test I made when the first released in December, it worked well. I just tested it again and it still works well (57k).
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 16:51 |
I was finally able to get it to work. Thanks.
// After printing body of main report MyReport..BackgroundImage = "C:\Projects\ est.pdf" iPrintBlock(ITERATION1) |
| |
| |
| | | |
|
| | | | |
| | |
|