Print and Print Preview Help

@wesley, U cn email it to [email protected]
@ermac, i have a feeling i'm doing it wrong, but the way i do it, when i try 2 put the PrintFormCtrl.Dll in the toolbox it says that "there are no components in 'directory path/PrintFormCtrl.Dll' that can be put on the toolbox"
 
You're supposed to add a reference to it and then use it as an object as per the supplied example. But it looks like you're sorted, don't bother with my code rather go for a mature implementation, if someone has the balls to charge $500 for it, its gotta be ok :D.
 
Finally downloaded the printForm today. It works an all but it adds the menustrip aswell, which i don't want (i did put it in clientAreaOnly). Also i see the cursor is also there.
 
Are you referring to my printform or the other one? Because mine does show the menu strip in the version I originally posted, but not the mouse. However, I've removed the menustrip from the list of printable controls in a newer version, would you like me to upload it?
 
The problem you are having is that mine is not a control, its just an object in a dll. You need to add a reference to the dll in your project. To do so simply right click on your project in the solution explorer and select "add reference", then select my dll. Then simply call the following line with the form you wish to print as your argument.
Code:
PrintForm.Print(Form F)

If you look at the example you can see this in action.

dll + example
 
Thanks its a bit better now.... On what paper size is that control set? Or must i set it myself. I'm struggling a bit with something else now, i want to make the columns add up to give like a total at the bottom. I'm kinda getting it right but the thing is, to see the total i have to type something in the total column, and if i leave out one column i get a error, probably logical. Here's the code i'm using.. AmtTot = amt01 ++ amt02 ++ amt03, etc... I have a feeling i'm totally wrong or how can i set a columns default value to null
 
Hey, sorry I've been really busy with university. The object I created basically converts the form into an image and then draws it without consideration for scaling. Scaling the image shouldn't be too tough at all.

Here is the source for that object of mine. Its all pretty straight forward.
Extend, or edit, it to fit your needs.
 
Top
Sign up to the MyBroadband newsletter
X