How to add practice logo to Statement, Receipt, Invoice.
How to add practice logo to Statement, Receipt, Invoice.
Dear Everyone,
Please advice how to add practice logo to Statement, Receipt, and Invoice.
Thanks in advance!
Please advice how to add practice logo to Statement, Receipt, and Invoice.
Thanks in advance!
Re: How to add practice logo to Statement, Receipt, Invoice.
There's currently a feature request out there to move statements, receipts, and invoices to our sheets framework which would make them completely customizable for all users.
http://www.opendental.com/manual/featurerequests.html
Or are you asking how to do it programmatically?
http://www.opendental.com/manual/featurerequests.html
Or are you asking how to do it programmatically?
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: How to add practice logo to Statement, Receipt, Invoice.
Hi Jason,
Yes, I am asking how to do it programmatically.
I would like to add practice logo at the place of practice's name and address.
Thanks,
Dennis
Yes, I am asking how to do it programmatically.
I would like to add practice logo at the place of practice's name and address.
Thanks,
Dennis
Last edited by dieutan on Wed May 21, 2014 10:38 pm, edited 1 time in total.
Re: How to add practice logo to Statement, Receipt, Invoice.
Ah yes, then you want to get your C# magic on in FormRpStatement.CreateDocument(). That's located in OpenDental > Forms Reports. 

The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: How to add practice logo to Statement, Receipt, Invoice.
Hi Jason,
I know exact code location. I need to know how to add a logo image - might be a bit map. how to get the image into the statement, receipt, and invoice documents. I saw a toothchart class and know how to call it, draw toothchart image on the document but I don't know how to create a new toothchart class, add new image.
Thanks and regards,
Dennis
I know exact code location. I need to know how to add a logo image - might be a bit map. how to get the image into the statement, receipt, and invoice documents. I saw a toothchart class and know how to call it, draw toothchart image on the document but I don't know how to create a new toothchart class, add new image.
Thanks and regards,
Dennis
Re: How to add practice logo to Statement, Receipt, Invoice.
MigraDocHelper.DrawBitmap() is probably what you want to use in that particular part of the code.
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: How to add practice logo to Statement, Receipt, Invoice.
Hi Jason,
Thanks for the information. Could you describe more details from the beginning of setting a bitmap, get the bitmap in, and how to point to it from drawbitmap()?
Dennis
Thanks for the information. Could you describe more details from the beginning of setting a bitmap, get the bitmap in, and how to point to it from drawbitmap()?
Dennis
Re: How to add practice logo to Statement, Receipt, Invoice.
I think you might need to do a little more homework before altering our source code by the sounds of things.
http://msdn.microsoft.com/en-us/library ... .110).aspx
http://msdn.microsoft.com/en-us/library ... .110).aspx
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: How to add practice logo to Statement, Receipt, Invoice.
Here it is:
1. create an ImageList
private ImageList imageListThumbnails;
// imageListThumbnails
//
this.imageListThumbnails.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListThumbnails.ImageStream")));
this.imageListThumbnails.TransparentColor = System.Drawing.Color.Transparent;
this.imageListThumbnails.Images.SetKeyName(0, "OpenDental.jpg");
2. Create bitmap
Bitmap bitmap = new Bitmap(imageListThumbnails.Images[0]);
3. Draw bitmap
MigraDoc.DocumentObjectModel.Document doc= new MigraDoc.DocumentObjectModel.Document();
MigraDoc.DocumentObjectModel.Section section=doc.AddSection();
TextFrame frame;
frame=section.AddTextFrame();
MigraDocHelper.DrawBitmap(frame, bitmap,50,50);
Thanks,
1. create an ImageList
private ImageList imageListThumbnails;
// imageListThumbnails
//
this.imageListThumbnails.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListThumbnails.ImageStream")));
this.imageListThumbnails.TransparentColor = System.Drawing.Color.Transparent;
this.imageListThumbnails.Images.SetKeyName(0, "OpenDental.jpg");
2. Create bitmap
Bitmap bitmap = new Bitmap(imageListThumbnails.Images[0]);
3. Draw bitmap
MigraDoc.DocumentObjectModel.Document doc= new MigraDoc.DocumentObjectModel.Document();
MigraDoc.DocumentObjectModel.Section section=doc.AddSection();
TextFrame frame;
frame=section.AddTextFrame();
MigraDocHelper.DrawBitmap(frame, bitmap,50,50);
Thanks,
Re: How to add practice logo to Statement, Receipt, Invoice.
If you want a quick solution:
1- Go to Setup->Modules->Manage tab->uncheck "Show return Address"
2- Let your printer add the logo for you. You can achieve this easily from your printer's preferences.
1- Go to Setup->Modules->Manage tab->uncheck "Show return Address"
2- Let your printer add the logo for you. You can achieve this easily from your printer's preferences.