Click here to Skip to main content
15,868,349 members

Comments by OriginalGriff (Top 200 by date)

OriginalGriff 20hrs ago View    
Yes ... but ...
It needs a valid installation of Excel (and probably the whole of Office) on the web server, and that not normal, and unlikely to be popular with your website admin - each instance of Excel take a fair amount of system resources and you don't know how many instances the server will need to run at any time. Since it's a website that could be a considerable load on the web server and slug everything else.

A better solution would be to rewrite your scripts to do the job in PHP itself (since it runs on your server anyway) - there is an Excel library for PHP so it shouldn't be a major task.
How to Create and Modify Excel Spreadsheets in PHP[^]
OriginalGriff 5 days ago View    
So check the size of the memory block you allocated. Remember that the bitmap is likely to need four bytes per pixel!
OriginalGriff 23-Mar-24 12:58pm View    
Have a look at how the .NET PrintDocument class is used: it handles pages in a pretty simple way.
Google will find you tutorials on how to work with it which will help you understand what you need to do in your code.
OriginalGriff 22-Mar-24 6:48am View    
What part of it is difficult for you?
You wrote the rest of the code, so it should be pretty obvious ...
OriginalGriff 22-Mar-24 3:21am View    
You're welcome - we all had to start from the beginning once! :D