Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

IntegraSoft

@IntegraSoft
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Printing in Different paper size
    I IntegraSoft

    Thanks, I found what I was looking. But if you have read it, you have noticed that what I was asking cannot be done with C#, not completly. There is an example on how to add the form using c++ code, and then with that form, use it in c# to print the custom size. So I assume the custom size option using the papersize constructor only works on Windows 98 or before. Carlos Eduardo Hernandez P.

    C# csharp question

  • Printing in Different paper size
    I IntegraSoft

    I try that before sending the example and it doesnt work, The PaperSize only have one constructor, ant it ask for the name of the papaer, and the width, and height. I put the same thing and it ignores it. One of my problems is solved, because with the enumertion I could manually create the form and use it in my code. But what I need is to be able to create a new paper size, and use it. In the code I sent you, there was a mistake, the line that calls the querypagemethod take it out. Thanks. Carlos Eduardo Hernandez P.

    C# csharp question

  • Printing in Different paper size
    I IntegraSoft

    This is the example I am trying. I am using an Epson LX-300 printer. The enumeration worked, i forgot to tell you that. But my initial question was that I need to create a custom form, and print using that paper size. In this example, I created manually, in Server Properties, in the printer & faxes form, and created the "MIPAPEL" form. When selecting the papersize I use the last element in the enumeration, and it printed the size I wanted, but I created it manually. If I use the new PaperSize("CUSTOM", 8.5*100, 5.5*100) it doesnt work. It seems as it is ignoring my custom size. Also, when doing this, there are no exceptions. Just create a C# project and copy this. -Code Start Here- using System; using System.Drawing.Printing; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace WindowsApplication1 { /// /// Summary description for Form1. /// public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(112, 176); this.button1.Name = "button1"; this.button1.TabIndex = 0; this.button1.Text = "button1"; this.button1.Click += new System.EventHandler(this.button1_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(296, 213); this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); }

    C# csharp question

  • Printing in Different paper size
    I IntegraSoft

    Sorry. But I have research enough, and it is not in the .net help, it is, but it doesnt work. Your example and Mazdak'a didnt work also. Maybe you should try what you post. When I help someone in a problem, I tried to help them completly not half way. Thanks. Carlos Eduardo Hernandez P.

    C# csharp question

  • Printing in Different paper size
    I IntegraSoft

    it dindnt. I am just trying to open a new thread so other people can comment on this. It has not work yet. Carlos Eduardo Hernandez P.

    C# csharp question

  • Printing in Different paper size
    I IntegraSoft

    Has someone print in .Net a custom papersize?. I have tried, and the only size that print is the standard size, 8.5" x 11". What do I need to do to change the papersize? Carlos Eduardo Hernandez P.

    C# csharp question

  • Changing the paper size at run time
    I IntegraSoft

    I try using the enumeration of papersize and it didnt work. But I really need to define a custom size, not one defined on the printer. Before using .Net, I was using VB6, and in Windows 98, Windows 95, it was very easy to print in any paper size in the printer. But after windows NT, or windows 2000, my vb6 applications could not print on any sizes on those windows. I found out that after windows nt, it has to be creted a form and then attach it to the printer and print. Could it be that I have to do the same thing. Thanks. Carlos Eduardo Hernandez P.

    C# question

  • Changing the paper size at run time
    I IntegraSoft

    I try that as well and it didnt work. Am i doing somehting wrong? thanks. Carlos Eduardo Hernandez P.

    C# question

  • Changing the paper size at run time
    I IntegraSoft

    I tried this ans it doesnt work, The paper size is still 8.5 x 11. Do I Have to do something else. Thanks. Carlos Eduardo Hernandez P.

    C# question

  • Printing Form
    I IntegraSoft

    Does someone knows how to print on windows xp pr 2000 on a custom size paper. I have tried and it prints what the default papersize the printer has. Thanks Carlos Eduardo Hernandez P.

    C# tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups