How to change the paper size before printing in data report.
Private Sub Command1_Click() funlovestory.comrDefault With funlovestory.comize = vbPRPSA4 'Using A4 funlovestory.comation = 2 'Landscape End With End Sub 'I have even changed to A3 size for a smaller report, all fine. 'Landscape was changed to 1 for portrait, also fine. ' Create a PaperSize and specify the custom paper size through the constructor and add to combobox. Dim pkCustomSize1 As New PaperSize("Custom Paper Size", , ) funlovestory.com(pkCustomSize1) If your project is compiled in VB6, I recommend you to take a look at the following article that can help you.
In my daatreport i have to print data reports in dot matrix printer. The following code example populates the comboPaperSize combo box with the printer's supported paper sizes.
In addition, a custom paper size is created and added to the combo box. The PaperName is identified as the property that how to make homework easy provide the display string for the item being added through the DisplayMember property of the combo box.
The example assumes that a PrintDocument variable named printDoc exists and that the specific combo box exists. Dim pkSize As PaperSize. Count - 1. Item i. Add pkSize. Add pkCustomSize1. If your project is compiled in VB6, I recommend you to take a look at the following article that can help you:.
Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual Basic. Not for VB6 questions.
Sign in to vote. Hi pals, In my project i have to print data reports in dot matrix printer. Dataerport have used Printer. If anybody have solution for this problem plz message me. Monday, February 19, AM.
Raja Prabu, In. Item i comboPaperSize. Add pkSize Next ' Create a PaperSize and specify the custom paper size through the constructor and add to combobox.
Tuesday, February 27, AM.
Add your solution here
Nov 14, аи help please i need to manually adjust the paper size of a data report. i need to enlarge the paper size so that i can enlarge the report size also go to ur vb codes (file where it loads the crystal report), and set these: funlovestory.comize = funlovestory.com4 (or bigger) Visual Basic 6 and. Jan 05, аи Jan 5 '08 # 2. data report cannot be shown if its width exceeds the default paper width. to show datareport in A4 paper set its ReportWidth property to (maximum for portrait printing). also set Rigthmargin property to and LeftMargin property to Nov 09, аи Private Sub DataReport_Initialize() funlovestory.comation = rptOrientLandscape End Sub But it won't work if your printer's default paper size is not A4 (e.g. letter or something). To solve this too, you have to download funlovestory.com, add it to your project, and register it with regsvrexe like so: c:\regsvr
Or you want to change the size from A5 to A3 for instance? I want to make the report on a 17' x 11' paper. Can you suggest me what should i have to do for this? Kindly give me a detailed answer as i am really in need of this. A3 for instance You can then again print on A4, no problem and on A5 but won't get errors. Please tell me one little thing. Can we have the solution in Crystal Reports? PaperB4 or bigger oRpt. NET VB. Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation.
This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace. Remember Me? Advertiser Disclosure. Advanced Search. Results 1 to 8 of 8. Thread Tools Show Printable Version.
Apr 7th, , AM 1. Apr 8th, , AM 2. Apr 8th, , PM 3. Apr 9th, , PM 4. Re: Adjusting Paper Size of Data Report i dont know the paper size but i need to enlarge it so that i can adjust my width also. Apr 10th, , AM 5. Make the report A3 size then change only the size of your controls. Apr 10th, , PM 6. I mean paper width solution. May 20th, , PM 7. One love Y'all. Nov 14th, , AM 8. Landscape or portrait if appropriate. All times are GMT The time now is PM.
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.