|
Prev: cmd-window
Next: VB2008: Getting the System.Reflection.PropertyInfo from withina class property
From: Mr. X. on 27 Jun 2008 04:09 Hello. I have VB.6. I am user printer object to print. When I am printing from VB. 6 (from the IDE), the printed report is fine, but when outside (same exe, same printer), printing is not ok (it seems out of range, because I am using currentX and currentY attributes. I there any know problem about, or should I reset printer before printing ? Thanks :)
From: Mr. X. on 27 Jun 2008 05:02 Here is some of my relevant code : ------------------------------------ SaveY as integer SaveY = Printer.CurrentY Printer.Orientation = vbPRORPortrait Printer.RightToLeft = True Printer.FontName = "Miriam Fixed" Printer.ScaleMode = vbCharacters printer.CurrentY = SaveY Printer.CurrentX = 0 Printer.Print "column 1" printer.CurrentY = SaveY Printer.CurrentX = 24 Printer.Print "column 2" .... Printer.EndDoc I don't know why - when printing from VB.6. printing is OK, otherwise I cannot see what I am printing (10 pages instead of 3) Thanks :)
From: Mr. X. on 26 Jun 2008 05:21 The major problem, is that every column is printed on seperated page (only outside VB), and not at the same one. Why ? Thanks :)
From: Jan Hyde (VB MVP) on 26 Jun 2008 09:28 "Mr. X." <nospam(a)no_spam_please.com>'s wild thoughts were released on Fri, 27 Jun 2008 01:09:19 -0700 bearing the following fruit: >Hello. >I have VB.6. >I am user printer object to print. >When I am printing from VB. 6 (from the IDE), the printed report is fine, >but when outside (same exe, same printer), printing is not ok (it seems out >of range, because I am using currentX and currentY attributes. > >I there any know problem about, or should I reset printer before printing ? > >Thanks :) > Are you running the executable on the same PC as the IDE? -- Jan Hyde https://mvp.support.microsoft.com/profile/Jan.Hyde
From: Jan Hyde (VB MVP) on 26 Jun 2008 09:30 "Mr. X." <nospam(a)no_spam_please.com>'s wild thoughts were released on Fri, 27 Jun 2008 01:09:19 -0700 bearing the following fruit: >Hello. >I have VB.6. >I am user printer object to print. >When I am printing from VB. 6 (from the IDE), the printed report is fine, >but when outside (same exe, same printer), printing is not ok (it seems out >of range, because I am using currentX and currentY attributes. > >I there any know problem about, or should I reset printer before printing ? > >Thanks :) > This may or may not be relevant but... http://support.microsoft.com/kb/173074 -- Jan Hyde https://mvp.support.microsoft.com/profile/Jan.Hyde
|
Next
|
Last
Pages: 1 2 Prev: cmd-window Next: VB2008: Getting the System.Reflection.PropertyInfo from withina class property |