gahhon Posted January 18, 2019 Posted January 18, 2019 Is there any resource/sample to generating a fancy report? I was downloaded this resource and try the example, but it failed to execution due to function not define. PDF My simple idea of generating the report would be like this:- Read data from excel instead of database, then generate PDF report based on my custom design. Any better ideas is much appreciate to share with me here Thanks.
water Posted January 18, 2019 Posted January 18, 2019 Please post the exact message you get in the SciTE output pane. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Gianni Posted January 18, 2019 Posted January 18, 2019 (edited) in that udf, the "function not defined" error, is caused by the lack of the _Iif() function. have a look to this post (https://www.autoitscript.com/forum/topic/187723-create-a-pdf-with-own-style/?do=findComment&comment=1348757) for a workaround to that problem and also as an easy example to generate "fancy" reports. Edited January 18, 2019 by Chimp Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Moderators JLogan3o13 Posted January 18, 2019 Moderators Posted January 18, 2019 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Vincor Posted January 19, 2019 Posted January 19, 2019 @gahhon Give also an example of Excel data - is it named fields, columns, etc, or how do you find your data in your spreadsheet? What kind of report do you need? Is it a single-page, lots of numbers kind of thing, or a many-pages bla-bla report? Does the output of the script need to be a PDF, or could it be e.g. Word, which you then "print" to a PDF?
gahhon Posted January 19, 2019 Author Posted January 19, 2019 14 hours ago, Chimp said: in that udf, the "function not defined" error, is caused by the lack of the _Iif() function. have a look to this post (https://www.autoitscript.com/forum/topic/187723-create-a-pdf-with-own-style/?do=findComment&comment=1348757) for a workaround to that problem and also as an easy example to generate "fancy" reports. Indeed. And I test run your example script is not what I am looking for. Your script is return a PDF with Calendar print on graph paper. What I am looking for is normal blank background with printed data. 2 hours ago, Vincor said: @gahhon Give also an example of Excel data - is it named fields, columns, etc, or how do you find your data in your spreadsheet? What kind of report do you need? Is it a single-page, lots of numbers kind of thing, or a many-pages bla-bla report? Does the output of the script need to be a PDF, or could it be e.g. Word, which you then "print" to a PDF? Usually the Excel is act like a table right. So in the Excel file there should be Header Row and Header Left Column, and within of them there should be have their appropriate data. Regarding the paging, I cannot say is single page or multiple page, it still have to depending the volume of the data. I think PDF would be the common report format? 12 hours ago, JLogan3o13 said: Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Moderation Team Thanks for moving the topic.
water Posted January 19, 2019 Posted January 19, 2019 As you seem to have Excel installed on your computer I assume the same for Word. It should be simple to copy/paste data from Excel to Word, arrange/format it and then save it as PDF. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now