Printing form issue

This forum is for programmers who have questions about the source code.
Post Reply
ujjwal singh
Posts: 39
Joined: Mon Jun 16, 2014 7:33 am

Printing form issue

Post by ujjwal singh »

Hi,


I have added an customised form in opendental. Now i want to prints its data but i m struggling in printing the graphics.drawstrin in multi lines. In other words if make the print of textbox.text whole text attempts to prints in a single line so it goes out of the margins and instead of printing the whole data only one lines gets printed. Please help.

Thanks
User avatar
Jandrew
Posts: 17
Joined: Thu Jun 11, 2015 2:45 pm

Re: Printing form issue

Post by Jandrew »

Hello,
I'm not sure if you mean your problem is with the textbox, or with drawing string using graphics.drawstring().
For the former, make sure you have your textbox's multiline bool set to true.
For the latter, you may pass in a rectangle object when using drawstring() to define an area that the text should wrap to.
https://msdn.microsoft.com/en-us/librar ... .110).aspx

Hope this helps.
Programmer (n.): A machine that turns coffee into code.

Andrew Jansen
Open Dental Software
Software Engineer
andrew@opendental.com
503-363-5432
ujjwal singh
Posts: 39
Joined: Mon Jun 16, 2014 7:33 am

Re: Printing form issue

Post by ujjwal singh »

Thanks for the Reply, My issue got solved now.

Query
I want to print the statement from the account module on my letterhead, i m not getting any option to set the margins for statement and treatment plan. Please Help


Thank You
JoeMontano
Posts: 64
Joined: Thu Aug 20, 2015 11:08 am

Re: Printing form issue

Post by JoeMontano »

Hello,

Regarding your last questions, are you printing using sheets or the default statement configuration?
Joe Montaño
Software Engineer
Open Dental Software
Joe@OpenDental.com
ujjwal singh
Posts: 39
Joined: Mon Jun 16, 2014 7:33 am

Re: Printing form issue

Post by ujjwal singh »

Hi I m using the version in that versions i have the only option to print in the default statement. Customization of the statement sheet is not possible in this Version.

Thank You
User avatar
Arna
Posts: 444
Joined: Tue Jul 09, 2013 3:16 pm

Re: Printing form issue

Post by Arna »

The functionality to use the sheets framework for statements was added in 15.1
Entropy isn't what it used to be...

Arna Meyer
JoeMontano
Posts: 64
Joined: Thu Aug 20, 2015 11:08 am

Re: Printing form issue

Post by JoeMontano »

Yes as Arna said in 15.1 you can use sheets which you could then customize the layout of a statement. Are you able to update?
Joe Montaño
Software Engineer
Open Dental Software
Joe@OpenDental.com
Post Reply