![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Additional Libraries Users contributed libraries. This sub-forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Agraham,
Well done, you make it all look so simple ![]() So far its working perfect for me, it is as if you read my mind with this lib, i was panicing how i was going to do nice printing, customers and friends always say plain text is good enough until it is what you give the, then its a problem. Thanks for your effort and responce to my request Friedrich ![]() |
|
|||
|
Hi Agraham,
I have a problem repeating my program (attched), when i print with your lib, delete the file and want to scan the drive for the next file (spool function) nothing happens, could you please help, i seem to be stuck here. Brain freeze This needs to happen without user intervension as the print server doesnt have a screen or keyboard Thank you Friedrich ![]() |
|
||||
|
Several things wrong I am afraid
The first problem is that you have a "Return" statement in App_Start. This is terminating the progam by exiting from App_Start. Secondly (after removing the return) at the end of App_Start you are doing a recursive call (calling itself), this is not necessary and will cause a stack failure. App_Start is only for initialisation and your code should run off the end of App_Start. If a form is displayed your program will not end but will be there ready to respond to events. If no form is displayed your program will end on leaving App_Start. Your delay routine is bad practice as it is using processor time unnecessarily by running in a loop. This starves other programs of processor cycles. You should be using a timer which takes no processor time when it is not executing code. Your code should look something like this Code:
Sub Globals 'Declare the global variables here. End Sub Sub App_Start ' do initialisation here Form1.Show Timer1.enable ' timer set to appropriate delay End Sub Sub TimerTick ' check for file If file Then print it delete it End If End Sub |
|
|||
|
Hi,
Nice library.... Anyways is there a way to programatically set or save what the user selects for printing using the pagesetup method. For example in my database reports, I always will want landscape, but most printers default to portrait. Also the margins are too much as well. It would be nice if I can set them under program control rather than have the users always having to select landscape etc etc. Thanks. Cheers. M |
|
||||
|
Version 1.3 with Landscape, LeftMargin, RightMargin, TopMargin and BottomMargin properties. They may be set without displaying the print setup and should be honoured when printed. They may also be read back from the PrintSetup dialog after displaying it if the users' choices are required. Note that margins are always expressed as hundreths of an inch - even on metric systems. This explained in the help.
|
|
|||
|
Hi,
Quote:
In the control I notice you can paste a bitmap image. I presume it paste's the bitmap where the current cursor is on the page? Also what is the simpliest way of getting a bitmap to the paste buffer. I have bitmaps in my database and having them printed out would be awesome. Thanks gain. Cheers. M |
|
||||
|
Quote:
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PhoneticAlgorithms Library (ex-StringComparison Library) | moster67 | Additional Libraries | 10 | 11-11-2008 08:46 PM |
| printing capabilities | Cableguy | Basic4ppc Wishlist | 13 | 07-21-2008 04:02 PM |
| Door library (Beta) - Special library | Erel | Official Updates | 48 | 07-18-2008 03:33 PM |
| Merging Outlook library and Phone library | Erel | Official Updates | 2 | 07-14-2008 04:38 PM |
| printing and barcode printing help | jchal | Questions & Help Needed | 3 | 06-02-2008 07:05 PM |