473,651 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Printer Form programmaticall y

Hi,
If I check the printers & faxes ->file ->server properties
There are lot of forms (Envelope, letter, etc).
I could add my custom form too, in this case I add a custom form, named
"MyCustomFo rm"

This is my code:
Dim pdoc As New PrintDocument

For Each obj As PaperSize In pdoc.PrinterSet tings.PaperSize s
MsgBox(obj.Pape rName)
Next

This code, only shows some of the forms, not all of the forms. It only
shows letter, tabloid, legal, A3, A4, A5, B4 (JIS), B5 (JIS), Japanese
PostCard & Custom Size.

My question is, how to use MyCustomForm that I've added?
Thx

Regards,

Alphonsus Eka

Dec 2 '05 #1
1 2035
Finally found out, that each of printers have their own forms. Thats
why MyCustomForm doesn't show.
So I need to configure the printer first, then select the form.
Now I could add my custom form to a spesific printer programmaticall y,
Use the form, then print it. But it works only with dot matrix printer.
In some printer like HP laser jet, I could add the custom form, but I
couldn't use the form. Cause when I'm using this code:

For Each obj As PaperSize In pdoc.PrinterSet tings.PaperSize s
MsgBox(obj.Pape rName)
Next

It doesn't show my custom form. Looks like it depend on the paper
dimension. If the dimension isn't supported by the printer, it still
added in the list of printer forms, but you can't get it with .Net

Thats my opinion, I would glad if there is any correction. Thx, hope it
helps

Regards,

Alphonsus Eka

Dec 8 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4730
by: Umesh | last post by:
Hi all I am trying to change the printer(like paper source ,etc) setting in C#. But i am unable to do it. I am not sure how to do it. should i have to use WIN API like Openprinter , getprinter , setprinter . I did try with PrinterSetting.setHDevMode but it does not work. Its their is a simple way to change printersetting. thanks umesh.
3
1657
by: NWx | last post by:
Hi, I have a web browser control integrated into a form, which display a HTM page I generate in my program And I want to be able to print that web page (it is a actually a report) But I want it to print directly in landscape format. Is there any way to automate IE to change page payout to landscape automatically?
11
6583
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
1
4165
by: slk23 | last post by:
Hi, I'd like to programmatically change the "Keep Printed Documents" option for a printer. The option is available in the Windows UI by going to the Advanced tab on the printer's Properties dialog. Turning it on causes Windows to save copies of printed docs in the printer queue (marked as 'completed'). In my research I've come across references to WMI. Is that the best way to do change the option?
1
12159
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
3
1828
by: Andrew | last post by:
hello Is it possible to create a PDF document from an HTML file using Crystal decisions. I have a .html file which I want to turn into a PDF programmatically.I have crystal reports as part of VS.NET but I have not used that before Also is it possible to send the same PDF to the printer programmatically using crystal reports
1
2863
by: Paul H | last post by:
I am developing a database where some reports need to print to a laser and some need to print to a dot matrix printer. I am not interested in how to do this programmatically, I will let the user manually select the printer for each report, my question is..... Is printing to a dot matrix printer the same (as far as Access in concerned) as printing to a laser or inkjet printer? Do I just create the report, set the margins and click...
5
6459
by: Raman | last post by:
Hello friends, I want to print an ID card. I have one Windows Form that contains front and back side. The printer is printing both front and back side at a time. I am trying to send both sides at a time. But it is printing front side on one card and back side on second card. I want to print both sides in a same card.
2
8533
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked printer, but nothing to add a local printer, assign it a port & driver.
0
8277
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,...
0
8700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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,...
0
8581
tracyyun
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...
0
7298
agi2029
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...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.