Paper Size Names
Hi,
I'm using the DeviceCapabilities API funciton to retrieve the paer sizes my printer support. I want to display these paper sizes in a combo box. However, the function only returns numeric constants. How do I find paper size name (ie. A4 or Legal) corresponding to a given constant?
Thanks
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Paper Size Using VB
hi
does any one know how to get the printer paper size ie height and width.
What dll do I use and if you have an example that would help.
Thanks
zann
Paper Size
Hi, Just Asking on How to set the Paper Size of a DataReport to Legal (8.5x14)?
I try using CommonDIalog Box but it doesn't work..
CommonDialog1.Flags = 64
CommonDialog1.ShowPrinter
I always go to the Printers and Faxes and set the Paper Size to Legal..
But my other projects, need only Letter(8.5x11) that's why I am going to back it's paper size to (8.5x11)..
What code should I write, so that everytime I run this program, the Paper Size will automatically set to Legal (8.5 x 14)
Hope you can help me with this?
Paper Size
anyone have idea on how to set custom papersize for crystal report 8.5?
Paper Size
hi,
does any gurus/newbies/fanatics know how to change the data report size from A4 to A5... is it possible?
thanks for any avail!
Get Paper Size
How can get all paper size which are available in the system to a list box?
Paper Size
Hi there,
How do I set the paper size to 8.5* 3.66 (default 8.5 * 11)??
This is because I have to print form in dot matrix printer in a 1/3 lenth of a regular paper size.
thank you,
kethees
Paper Size
hello. good day.
how can i retrieve all the supported paper size for a printer?
and how can i set the paper size?
i have tried using the printer collection, but always causes an error.
thanks for the help.
How Can I Automaticaly Fit The Paper Size?
Hi,
Let me try to explain what I want exactly
One of my program is successfully populating the records into many excel worksheets with the given format.
Some of those details are going to many coloums (horizontaly from 'A' coloum to 'O' coloumn). When I am trying print those excel worksheet is A4 size paper, it is coming into more than one paper ('A' to 'K' in one sheet and remaining into another sheet)
How can i automaticaly fit into the A4 size paper width by coding wise?
I know that manually we can go and adjust the size by a draging the lines in print view page. Can I do that through excel automating coding? Is it possible to do? Now everytime user has to go and manually set the lines to fit into the page width
Pls shed some lights on this
Define Paper Size
hi,
Can we define Paper Size (A4 or Legal or Letter) while printing thro macro?.
By giving this below code, it is taking defalut paper size. any idea regarding this.
Range("A1:E25").Select
Selection.Copy
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
suresh
Change Paper Size
what is the cording to change paper size and set as landscape .. what is the right cording i m trying like this
printer.papersize = 9
printer.oriantation = 2
its not working
y is that ??
what should i do
Printing Paper Size
I am printing a Data grid to the printer in my application and use a the common dialog box to get the settings. The user can in the advanced settings set the paper size. How do I go about getting this infomation so I can set the paper size when I print. There isn't a property in the Object to get this.
Maybe a API Call????
Printer Paper Size
Hi,
Can anyone tell me a way to set the paper size dynamically in vb? I am developing an application that prints timetables for students. I need to set the paper size dynamically..
Thanks in advance..
graci`as
HOLHI
Custom Paper Size
my reports is designed to print in a custom paper size, 8.5 x 5.5 inch (half of Letter size). thats a problem if my program run in xp.
if i run in win98 or ME, thats not problem. i just have to set a custom paper size in the printer setting. i just set the width=850 and length(height) = 550 as well. (pic1)
BUT, when i run in xp, i cannot set custom paper size... How to set custom paper size? i cannot found custom paper... (pic2)
pls help. tq.
Print Paper Size
Using a Intermec label printer what line of code do I use to tell it to print 4 inches by 6 inches. I know i can change these settings in the driver, but we are having complications with that. So, if anyone knows the code to set the paper size settings, it would help out a lot.
Thanx in advance.
Print Paper Size
Hi VB Masters ...
i hope someone can help me out with this ...
i have created a couple of forms that have picturesboxs in them .. these images are some documents i scanned ..
my objective is to print these forms wit the exact size of the picturesbox in them (and so i did thanks to this Forums help by adding hte following printpicturebox picture1, 0, 0)
but for some i noticed that one of the picture i inserted to the form is not an A4 size instead its a 33 cm paper size ..
-can i give a command about paper size in the form (VB) or is it not possible
-Or this issue should be solved with the printer i am using .
i am using a Xerox photo copy printer witch can take 2 paper sizes at the same time..
Your help is higly apprexiated.
Thanks
Custom Paper Size.
Is the ability to change a report to print in custom paper size based on settings on the printer?
Or is it possible to somehow change this in the crystal designer tool?
Change Paper Size
How to get the Data Report height after loading the Report?
How to change the user difined Printing paper size in VB?
Excel Fit To A4 Paper Size
I am generating an excel sheet using VB6. Now the report layout is landscape. However some of the columns cross the paper boundary.
Our clients have printers that support A4 paper size only.
Now when I set this using excel this is the macro recorded
Code:
ActiveWindow.View = xlPageBreakPreview
ActiveSheet.VPageBreaks(1).DragOff Direction:=xlToRight, RegionIndex:=1
ActiveWindow.View = xlNormalView
however when I use this code in VB it does not work. What can I do????
Paper Size, Setuserpapersize
im using PIN printer to print a cash bill,
the paper size is 8.5 inch x 5.5inch (half of normal fanfold size)
so, the preloaded papersize in crystal report 9.2 doesn't have such paper size, so i need to set it myself
VB Code:
myReport.PaperSize = crPaperUsermyReport.SetUserPaperSize length, width
refer to the help file in crystal report, the length & width value is in pixel, 1 inch equal to 1440 pixels right?
so 8.5 inch should be 12240 pixels & 5.5 is 7920, but end up not what i want.
after few hundred tries, i found that 1335, 2100 nearly equal to 8.5 x 5.5 inch, why?
anyway to change the scalemode of it to cm or inch?
How Can I Change The Paper Size???
Hi to all
I'm using VB6 and i make a report with the datareport (default of vb).
I 'm searching the Web to find how i can change the paper size of the printer that user select but nothing.
I have a report tha prints Folio - Letter but it hasn't the same margins with the vbprpsFOLIO.
When the user select a printer from print button ( In Microsoft DataReport) i want to change the paper size of that printer.
**Sorry for my bad English**
Thnks
Set Paper Size For A Report
I'm trying to print a crystal report to a dot matrix printer. The paper size I want to print onto is 5 1/2 inchs (14cms) in height * 8.3 inches (21.1cms) in width but I can't find anywhere in crystal to set this paper size.
I have also tried going into the printer setup in windows but can't find an option to customize the paper size.
Can this be done from VB? Or how can I set the paper size?
Setting The Paper Size Though Vb
Can I set the paper size( A4,LETTER,A3 etc)
of the defalut printer through vb ? I am using Data Report with & Visual basic 6 sp 5
pls help,
Dennis.
Dynamic Paper Size
hi
i am using data reports.. i have diff reports with diff size(the height). so is it possible to do it by code i tried printer object but does not work...
currently we have assign printer for such reports(bills)
can any one help me out pls do we have any api to handle it and tips can do a gr8 diff
Setting Paper Size
Hi Everybody,
I have a vb application in which I resizing the paper size using following command with Genric Printer
Printer.Height = 1440 * 5
Printer.Width = 1440 * 11
Printer.Orientation = 1
This works fine when used On win 98 but On win xp the paper size is not which is given above.
Can Any Body have Clue
Thanks in Advance
Change Paper Size Through VB
Hi all,
can anyone let me how to change the paper size through VB code dynamically as per requirement, ie some of my data reports are using letter size papaer some using legal and some A4, I have tried printer.paperSize but it is not working ,
Thanks in advance
bye
Default Paper Size
Hi:
I´m trying to print a label 11 x 15 inches
I define the paper size:
Dim TamEtiqueta As New PaperSize("TamEtiqueta", 1100, 1500)
After I want to print the label
I use the follow code:
'Declare the print Document and some properties (Papersize and Landscape)
Dim Etiqueta As New Printing.PrintDocument
Etiqueta.DefaultPageSettings.PaperSize = TamEtiqueta
Etiqueta.DefaultPageSettings.Landscape = True
'Print tha label
Etiqueta.Print()
The problem is: the printer uses a letter size,
I have to use a printdialog objet to correct this problem
Dim PrintDialog1 As New PrintDialog
Dim result As DialogResult = PrintDialog1.ShowDialog
BUT for each label printed I have to configure the paper size (already registered in the printer properties)
I print about 600 laber per day
I treated to configure some properties for printdialog object as showing
Dim PrintDialog1 As New PrintDialog
With PrintDialog1
.Document = Etiqueta
.PrinterSettings.PrinterName = "HP5100"
.PrinterSettings.DefaultPageSettings.PaperSize.PaperName.ToString()
.PrinterSettings.DefaultPageSettings.PaperSize = TamEtiqueta
.PrinterSettings.DefaultPageSettings.Landscape = True
End With
But doesnt work
What can I do?
Please I need help...
VB Printer (paper Size)
ok i made some forms with some pics or documets i scanned as pictureboxes so that they can be edited in the app and printed ,,,, but for some reason one of these forms should be printed on a folio .. so i made an acception
din ddd as boanean
if ttt= true then
printer.papersize = vbprpsfolio
end if
i also got a module from the net so that i can print the picturebox and with values of X and Y
the printer i am using is a Xerox photocopy machine that can take 2 kinds of papers at the same time ...
what i need to know is can this command change the original Paper Media type , is it enough or do u advice i open a printer common dialg for my users ?
thankx
Active Paper Size
Hi All
I got problem to know active paper size in my printer.
can you tell me how to know that...??
and how to set manual paper size for my printer...???
thx b4
b-bob
Edited by - b-bob on 11/2/2003 7:23:15 PM
Current Paper Size...
Hi All,
How to determine what is the current(default) paper size set on the machine.
Once user changes the paper size I need to get it to the code for resizing my report....
Please help me....
Sizing Form To Paper Size
How does one make a form look like a 8 1/2" x 11" pc of paper. I am trying to develop a quote form but the end result has to look like a piece of paper and curently the form only shows up on 3/4 of a regular size sheet.
Font Sizes To Paper Size?
Hello,
I'm trying to get this printing code finished and ran into the problem of how many rows to count on an 8 1/2" x 11" paper size with various font sizes. ie, how many rows does it take a font size of 8 to fill a the paper?
Is there a chart or something somewhere that shows these ratios of other font sizes and paper sizes?
Also, I'd like to know if the screen resolution has anything to do with the font sizes printed onto the paper if I'm using the Print Object Methods and Properties? Or do I just have my plans here completely wrong and am not doing this correctly?
Thanks again guys.
Kind Regards,
Drumsticks
How Set The Paper Size, Printer.Papersize(?)
I am coding a little program to print graph paper.. (everyone's done this I presume).. I've got it to print on the standard 8.5 X 11 paper which I have figured out is the default setting when printing in VB..
What I want to do is have an option for the user to use 14 inch paper.. I'm stuck at Printer.Papersize(?) Whats the syntax ? Thanks
Print On Legal Size Paper
Does anyone know how to print a datareport on legal size paper?
This is my code
Code:
DataReport4.Orientation = rptOrientLandscape
DataReport4.PrintReport
What code would i use to print on legal size paper?
Thanx.
Change Printer Paper Size
my DataReport paper size is larger than the printer default size
How to change paper size programatically?
Code:
Printer.PaperSize = PrinterObjectConstants.vbPRPSUser 'supported by the priner driver
Printer.Width = #### 'number in twips which is larger than my report width
OR
Code:
Printer.PaperSize = ...A2 'The constant for A2 which is also supported by the printer driver
won't work, it has no effect on the printer at all (for my program or system-wide) and the error still popups.
the printer is EPSON LQ-1050 (wich driver is packed with win98/ME)
I searched the forums for this, I found alot of articles, I read more than 50 one, I got nothing usefull.
and this is the same article I wrote in other forum with about 4 replies and had no answer.
http://www.vbforums.com/showthread.p...51#post1555751
any help please
Data Report Paper Size
it's any way to customize de paper size on monitor when use the data report?
i sawit on letter size but needit half size
Access 2k Repor Paper Size
I have created a small report in access 2k...By small I mean the paper size should be about 4x10 cm.. But when I display the report, it looks just like A4 usualy do..., how do I fix the printout to show ONLY the actualy size of my report??
Hope you can help me
HELP! Data Report And Paper Size
Hello again. I go again with question. How to change the paper size on data report. My data report don't show anything, becouse the report size is biger then paper size, but I want to show any way, any if the paper is smaler.
Setting Paper Size As A4 And A5 In The Application
I am developing an application where in some reports of the application are designed for A4 size of paper while some are designed for printing on A5 size of paper. I am using Data Report for generating my reports.
Is there any way to change the default paper size of the printer during application run time. I tried using
Code:
Printer.PaperSize = vbPRPSA4
but of no help. If my default paper size is A5, then if I try to run the report designed for A4 page then it gives me an error :
"Report Width is Larger than the Paper Width."
Any one pls...
Using VB Printer Object Paper Size
hello, i noticed that whenever i printed with d printer object , the printed text gets cut off, of the right side of d paper. how can i wrap it like normal printer (i.e like notepad)
dim s as string
s="some lenghty message.....end of message"
it gets printed on a line
oyad
Setting Paper Size Of A Report...
Hi
I think this was been addressed in an earlier thread, still, i am placing so that some1 who is very much known can forward me the link please. I have a single page report and i wanted to set the default paper, as we used to set the printing preferences, as A4. How can i do it ?
Thanx for your time.
Gs
Printing On Custom Size Paper
Hi,
How do I print on a paper of size 254mm x 203mm?
After printing the paper should not scroll out. Because it is a roll of preprinted papers of same size.
Thanks in advance,
Ram.
Printing On Custom Size Paper
Hi,
How do I print on a paper of size 254mm x 203mm?
After printing the paper should not scroll out. Because it is a roll of preprinted papers of same size. (one record per page)
Thanks in advance,
Ram.
Change Printer Paper Size
my datareport reportWidth is about 20000 twips witch equal about 330 mm
when change paper size of the printer sittings to A2 (420 mm width) it works
when change paper size of the printer sittings to any other (smaller): "Error: Report width is larger than the paper width"
I put the folowing code to change the paper size before DataReport1.Show:
Code:
Printer.PaperSize = 258 'equivalent to A2 paper size
or
Code:
Printer.PaperSize = PrinterObjectConstants.vbPRPSUser
Printer.Width = 20000
Printer.Height = 20000
But the code did nothing
How can I change printer paper size by code?
Note that the printer is compatible with Epson LQ-1050
Of course I searched the forums for this "Printer paper size" and found alot of articles most left with no answer or not atchived a solution
please I realy need your help
|