Hi, I've been given a task of printing from a grid in VB6 and came across the article shown below.
I've implemented the code provided (re-typed, not copy/paste) and when I run it I get a run-time error 383 saying the printer properties are read only. For example, if I try to set the orientation to landscape by coding Ptr.Orientation = 2 the error tells me that the 'Orientation' property is read only. If I comment this line out, I get the same error on the next printer property, for example, Ptr.CurrentY.
I'm correctly identifying the default printer and do not get an error when setting the Ptr.Font.Name or Ptr.Font.Size.
I realise the original post is over two years old but I need to solve this problem if possible. Does anyone have any ideas as to what my code may be throwing these errors?
Thanks and best regards
Peter