Hello,
How would you print a picture box? I found sites online on printing a form and its basic controls but nothing on picture boxes.
Is it possible to print a logo for example from a C# .NET application?
Max 1 7017
On 3 Apr, 14:07, "Max" <maxy_...@yahoo .comwrote:
Hello,
How would you print a picture box? I found sites online on printing a form and its basic controls but nothing on picture boxes.
Is it possible to print a logo for example from a C# .NET application?
Max
Hi,
This seems to work: Again, I added a picturebox to a form and a button
in this case button6. My test form is getting cluttered :)
private void button6_Click(o bject sender, System.EventArg s e)
{
System.Drawing. Printing.PrintD ocument pd = new
System.Drawing. Printing.PrintD ocument();
pd.PrintPage+=n ew
System.Drawing. Printing.PrintP ageEventHandler (pd_PrintPage);
pd.Print();
}
private void pd_PrintPage(ob ject sender,
System.Drawing. Printing.PrintP ageEventArgs e)
{
e.Graphics.Draw Image(pictureBo x1.Image,0,0);
} This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Coho, Jr. |
last post by:
Ok, I'll explain the whole problem because there may be several ways to
solve this and hopefully someone knows one. What I'm doing is creating
a specialty template editor, similar to say a corel draw (but for
specific uses). What I need to be able to do is import graphics and
text and then move them around the background until they are where I
want them and then export it out as an image file.
The problem is that I need to be able to...
|
by: Gary |
last post by:
Hi all,
Can anyone point me to a sample on how to print a picture box image to a
printer or do you have sample code that could show me?
Thanks,
Gary
|
by: Kersten |
last post by:
Hi to all,
I havea big DB with information and pictures of our employees and this
DB is used by a lot of people in our company.
The data format is Access2000.
In the past the import of pictures without problem, I clicked in a
form -> import object -> create new -> MS Photo editor -> etc.
On my desktop I have now installed Office2003 and here is not more
the MS Photo Editor but the MS Office Picture Manager and he is not
listed in the...
|
by: Greg |
last post by:
I'm fairly new to access (using 2002) and am setting up a DB for work.
along with each record the user also needs to make a flow diagram
(previously, these reports were composed in word and they used the
autoshapes to create this diagram). I was wondering what the best way
to incorporate this into the DB. I have read about how saving them as
pictures in the DB bloats the size, which is unacceptable, but it
needs to be easy to do (not...
|
by: Ulrike |
last post by:
I need to bind in (thumbnail-sized) pictures into an Access Database
in such a way that there is one picture for each record (abt. 3000
records on the whole). Ideally, the pictures should show on the Form.
Until now, I have embedded OLE-objects and have inserted each picture
manually in the records - but the pictures do not show in the Forms. I
have to double-click an icon and then, the picture will open in an
external programme.
PROBLEM...
| |
by: ANSWER |
last post by:
Hi,
I have Employee database in MS Access. Now I want to include picture of
employees near personal contacts.
1/ How can I do that
2/ Where am I going to save them.
Thanks
|
by: dirk nerlich |
last post by:
Hi
I want too create a picture database.How can I link a picture(tiff, JPG) on
one
datafield? If I use ole objekt I only see the filename but not the picture.
Further I will give some information about the picture in some fields. How
can I save the information I want in the picture with xmp?
thank a lot for your help
Dirk
|
by: Bwells |
last post by:
Sorry for the legacy question (VB6) but the program I need
to implement printing on has not been converted to .Net
yet.
I have a form with 4 Picture Boxes on it. These boxes are
used as a simple means of displaying data from my
database, and data regarding the connected user.
I am using printform to print the form in its current
state, which works well except that the contents of the
|
by: Jeremy.Campbell |
last post by:
I am trying to add a picture to a form that is visible depending on
certain criteria. The picture works perfectly on my computer, but on
other users computers this image is either black or scrambled. Can
someone please help!??!?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |