468,301 Members | 1,531 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

Microsoft Common Dialog Control is not printing range of pages correctly

Hi
I'm facing problem while printing Range of pages using Microsoft Common dialog control on vb6. No of copies prints correctly.



The code I used :
Expand|Select|Wrap|Line Numbers
  1.       MainMenu.CMDialog1.flags = PD_PRINTSETUP
  2.       MainMenu.CMDialog1.flags = PD_NOSELECTION       
  3.       MainMenu.CMDialog1.Min = 1
  4.       MainMenu.CMDialog1.Max = 999
  5.       MainMenu.CMDialog1.DialogTitle = svTitle
  6.       MainMenu.CMDialog1.Copies = nvCopies
  7.       MainMenu.CMDialog1.Action = 5
  8.       pages = MainMenu.CMDialog1.flags And cdlPDPageNums
  9.       beginpage = MainMenu.CMDialog1.FromPage
  10.       endpage = MainMenu.CMDialog1.ToPage
  11.  
The information which is getting printed will be runtime.
after this code , data will get generated.

OS: WINDOWS SERVER 2003
LANGUAGE: VB6


Please help

Thanks in advance.
Nov 6 '06 #1
1 1601
Killer42
8,434 Expert 8TB
Expand|Select|Wrap|Line Numbers
  1.       pages = MainMenu.CMDialog1.flags And cdlPDPageNums
  2.       beginpage = MainMenu.CMDialog1.FromPage
  3.       endpage = MainMenu.CMDialog1.ToPage
  4.  
So, are you saying that these three lines return the wrong values? If not, then I guess it's your problem. :)
Nov 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by John Lauwers | last post: by
7 posts views Thread by J Smithers | last post: by
3 posts views Thread by John Peterson | last post: by
6 posts views Thread by Steve Barnett | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.