15,885,309 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Al Yambo (Top 27 by date)
Al Yambo
29-Oct-12 13:09pm
View
Thank you for your response. Will try it
Al Yambo
29-Oct-12 13:08pm
View
Hi Kenneth. Thanks but I do not think the code here copies the formatting.
Al Yambo
15-Sep-12 13:37pm
View
When I copy a set of rows from the datagridview how do you include color information into the clipboard copy
Al Yambo
1-Aug-12 19:10pm
View
Thank you for your response. Let me digest your code a little bit and also try it in my application.
Al Yambo
1-Aug-12 18:54pm
View
I get an exception when I use either Calculate(g); , Calculate(Graphics g);
inside of private void btnPrint_Click(object sender, EventArgs e) method. "The name g does not exist in the current context" & "System.Drawing.Graphics is a type but is used like a variable".
Al Yambo
1-Aug-12 18:38pm
View
I get an exception when I use either Calculate(g); , Calculate(Graphics g);
inside of private void btnPrint_Click(object sender, EventArgs e) method. "The name g does not exist in the current context" & "System.Drawing.Graphics is a type but is used like a variable".
Al Yambo
26-Jun-12 1:12am
View
I use the code below to get the width and height.PageWidth = ThePrintDocument.DefaultPageSettings.PaperSize.Width;
PageHeight = ThePrintDocument.DefaultPageSettings.PaperSize.Height;
and I verified with this code to make sure it is correct. I was getting 850 for width and 1100 for height which is correct.
MessageBox.Show("ThePrintDocument.DefaultPageSettings.PaperSize.Width " + ThePrintDocument.DefaultPageSettings.PaperSize.Width);
MessageBox.Show("ThePrintDocument.DefaultPageSettings.PaperSize.Height " + ThePrintDocument.DefaultPageSettings.PaperSize.Height);
Al Yambo
26-Jun-12 1:10am
View
I use the code below to get the width and height.PageWidth = ThePrintDocument.DefaultPageSettings.PaperSize.Width;
PageHeight = ThePrintDocument.DefaultPageSettings.PaperSize.Height;
and I verified with this code to make sure it is correct. I was getting 850 for width and 1100 for height which is correct.
MessageBox.Show("ThePrintDocument.DefaultPageSettings.PaperSize.Width " + ThePrintDocument.DefaultPageSettings.PaperSize.Width);
MessageBox.Show("ThePrintDocument.DefaultPageSettings.PaperSize.Height " + ThePrintDocument.DefaultPageSettings.PaperSize.Height);
Al Yambo
26-Jun-12 0:54am
View
Yes. System.Windows.Forms.PageSetupDialog.
Al Yambo
24-Jun-12 9:15am
View
Thank you for your inquiry. This is a winform or windows app.
Al Yambo
24-Jun-12 9:14am
View
Thank you for your response. This is a winform or windows app.
Al Yambo
10-Jun-12 8:39am
View
Thanks once again. The resize is working well. Glad to know too I can just use the image directly.
Al Yambo
10-Jun-12 7:33am
View
Thank you. I did as you recommended. Very informative article. One follow up question-- Can this picture file be resized?
Al Yambo
10-Jun-12 7:18am
View
Thank you. Exactly what I needed. I am now able to save the picture in the program and reference and print it as below. Now I have a place for all those picture files. My other question is-- Can these pictures be resized in the program (not that I need to at the moment)?
PictureBox newImage = new PictureBox();
newImage.Image = Properties.Resources.pic7;
Point ulCorner = new Point(300, 300);
e.Graphics.DrawImage(newImage.Image, ulCorner);
Al Yambo
8-Jun-12 12:12pm
View
Thanks. Its nice to have another alternative using PageUnit property but I already used someone elses suggestion on another post as the one below.
Image newImage = Image.FromFile("c:\\Documents\\pic.gif");
newImage.HorizontalResolution and newImage.VerticalResolution gives pixels/inch.
Al Yambo
7-Jun-12 8:33am
View
Thank you Stephen. The VerticalResolution and HorizontalResolution are all I needed as it gives the conversion in pixels/inch.
Al Yambo
7-Jun-12 8:29am
View
thank you for your response.
Al Yambo
7-Jun-12 6:03am
View
Its a windows application and I need to print an image with the numerical data. I have printing code and I do not use crystal reports.
Al Yambo
7-Jun-12 6:00am
View
Thank you for your response. I tried what you suggested, my only problem now is that the image size is in pixels and while the print area is in inches. How do you convert from pixels to inches?
Al Yambo
5-Jun-12 14:09pm
View
Thanks. Good read.
Al Yambo
5-Jun-12 13:01pm
View
Trying to display the image at point ulCorner.
Al Yambo
29-Mar-12 13:56pm
View
Thank you for your response. I will check the link.
Al Yambo
29-Mar-12 13:21pm
View
Thank you for your response. One more question -- Can these CSV files have colored cells and set fonts for instance when opened in Microsoft Excel?
Al Yambo
29-Mar-12 13:16pm
View
Thank you for your response. One more question -- So you cannnot open the excel file on your application if EXCEL spreadsheet software is not installed?
Al Yambo
17-Mar-12 11:39am
View
Thank you.
Al Yambo
17-Mar-12 11:38am
View
Thank you.
Al Yambo
15-Mar-12 11:17am
View
Thanks for the link. I will check it out.
Show More