![]() If you investigate here: you will see various examples of using the native tc_pdf functions. Take into account that the tc_pdf library that scriptcase uses doesnt update so quickly as the original tc_pdf functions. We recommend deleting the info and diagnosis files in the production environment. The complete code for an example is there, made with tc_pdf functions which you can also do with sc_pdf_ functions… ScriptCase 9.9.014 Download for Windows / Change Log / ScriptCase 9.9.014 - Added option to view the diagnosis in the production environment. So if you want to find a function you can make it with tc_pdf functions of with sc_pdf funcions from scriptcase. I have a background image that I use and that is a guide for positioning the cell data. and you will find that the tc_pdf and the scriptcase.īasically those libraries are the same. The report is a multi-record report, and this part is fine. Scriptcase uses sc_tc_pdf but it has made it a bit different then the original tc_pdf. If you want to use other pdf functions that are not available under tc_pdf_* then you can use $this->Pdf->x where is is the function you need. Be aware that you can not run scriptcase functions in the code section (I reported this, so they may change it). Close and output PDF document not needed it seems scriptcase does this $pdf->setImageScale(0.3) //PDF_IMAGE_SCALE_RATIO $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM) $pdf->SetAutoPageBreak($auto_page_break, $bMargin) $img_file = K_PATH_IMAGES.'image_demo.jpg' After that, try to deploy your project on your development environment to see if the issue contiues. After that, deploy your project again generating the ZIP file, and make sure to deploy SC libraries. $auto_page_break = $pdf->AutoPageBreak To prevent that, go to /scriptcase/tmp and clear the folder. $bMargin = $this->Pdf->getBreakMargin() $this->Pdf->setPageMark() //MultiCell,WriteCell,WriteHTML after this Sc_pdf_set_author('University of Groningen') ![]() Sc_pdf_set_author('Rijksuniversiteit Groningen') $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false) I have this code in my page code section in layout pdf. $pdf = new ZNW_PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false) New PDF doc with class ZNW_PDF (Tools / Libraries / Project / znw_header_footer.php) Include the main TCPDF library (search for installation path). set the starting point for the page content It allows you to set a background color for the widget content. $this->SetAutoPageBreak($auto_page_break, $bMargin) But it is tricky to find it out in detail. All the background-images are JPG format.You can only do that with custom coding.The background images have 3 variations, the first is 630kB in size,.Iv'e tried all the suggestions in the other thread but sadly none of them works.Īnyone has an idea what is causing this problem or perhaps a different way to get the background images in the reports? I did this in the load event of the report: Me.Picture = "O:\FactuurLayouts\VSP_Layout_NL_ENG.jpg" 'Setting the backgroundĭo While Timer < sngStart + 2 'wait for 2 secondsįor some time it generated all the reports correctly so I thought the problem was solved, but sadly I had another empty one today. I believed the solution was to build in a delay with a DoEvents so that the report has enough time to generate the background. Several replies in this thread made me believe that the image just can't always be generated because it is perhaps to big. ![]() Most of the times this works great, but for every 20 reports or so one goes wrong (being generated without an background-image).Īfter some research I found the following thread which exactly described my problem: With a click on the button the report is begin generated and converted to a PDF file using the build in Access PDF converter ( DoCmd.OutputTo 3, "", acFormatPDF). The report has 1 background image that fills the entire background (a4 format). Iv'e got an Access front-end application that generates a few reports based on form data. Created a new one in a new project and still the same. It was showing, the there was an error that popped up. ![]() So I am struggling with the following for quite some time. kunjan July 30, 2021, 9:25am 1 pdf report- background image not showing in developement environment Nico July 30, 2021, 12:39pm 2 I have exactly the same problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |