Hi everybody,
I didn't have much luck with my previous question, so I'm looking for a different angle.
My problem is I'm sending text and Pictures to the printer from different forms and getting them to print when I've finished with the "EndDoc" statement delivered by a command button.
As the text is only about 6 lines in each case, I can get about 7 of these paragraphs on 1 A4 sheet of paper, which is Great!...just...
User Profile
Collapse
Profile Sidebar
Collapse
Tomservo
Last Activity: Apr 5 '07, 05:04 PM
Joined: Mar 12 '07
Location: UK
-
Escape code to delay Printing?
-
VB6 Print Picture Problem Puzzle Poser Perhaps?
Hi Gang,
Is there a command to make 'Printer.PaintP icture' actaully print next to where a line of text is printed, rather than at x.y coordinates?
as in :-
"line of text 1" (and then) picture1
"line of text 2" (and then) picture2
"line of text 3" (and then) picture3 etc
The Pictures are taken from an Image box (Image1) which is populated by If... -
You Guys are Brilliant!
Thankyou!
regards
Tomservo -
The Forms in my 'EXE' program seperate when moved
Hello Everybody!
my program is made up of several Forms, and once compiled to an exe, if I were to move it across the desktop, the Forms seperate; can this be prevented?
regards
Tomservo -
Hi Dököll!
I'm pleased as punch to report it's working fine! Thanks again.
I put all the code in you suggested and at first it didn't work, then I realised I'd left out the "Unload Me" statement and it burst into life!...
Then I started thinking... I hadn't used that before, so I put it with my original code (below)...and that works too! (my brain hurts now)
I won't forget that line...Leave a comment:
-
-
Layering!!... I never thought of that! that could work, I'll give it a go in the morning.
Thankyou!
regards Tom...Leave a comment:
-
Yes, the program is a Windowframe pricing prog; you choose a style of Windowframe on the form named "SingleMenu " via a command button, and that brings up the calculating form with the correct Windowframe displayed.
Having priced one frame, I need it to be possible to price another, possibly different Windowframe, so I programmed a button to take me back to the 'Single section' Windowframe Menu...it's all working fine except for ...Leave a comment:
-
Hi Dököll, Me again,
No matter what I try of your suggestions it seems to remain either with the same image, or if I use the 'Nothing' parameter, blank.
I found this link,
http://support.microso ft.com/?id=814675
left by someone who has the same problem, the trouble is the solution explained is a bit over my head at the moment...
I'd appreciate your view on this if you could give it a look....Leave a comment:
-
Ok Thanks for your trouble Guys
I'll play with that this evening.
Best regards
TomLeave a comment:
-
Thanks Devon,
That was what I meant, the first suggestion made it invisible but didn't clear it.
This one clears the image but for some reason it stays clear and won't allow it to be populated again.
Have a look at the code (I know it's amateurish but I'm getting there...)
Code:Private Sub BackToMenu_Click() Image1 = Nothing SingleMenu.Show End Sub Private Sub
Leave a comment:
-
-
How can I Clear an Image during run time (Newbie)
The Image box is being populated via an If & Then statement, but I need to clear it before the condition changes.
Are there any 'one-liners' out there? -
-
I need a Simple code for Image Load to Form VB6
Hi everybody.
I Know there is a lot of information about this subject but it's quite indepth and I just need to know if there is a basic command for loading an image file to a pre-sized Image box (set to Stretch) from code, and then I can mess about with the Ifs & Then's and the For's & To's,...is there anything like this (which doesn't work straight off) :-
Image1.Image = LoadImage("C:\I mage.bmp") -
-
I appreciate the help;
Does this mean that you can use 'If & Then' without the 'Else'?, or put the 'Else' in without specifying anything after it?; I've been concerned that unless I tell it to revert back to the former value of "Height" for any other condition, it will remain the value of the 'If' line.
regards...Leave a comment:
-
Thanks Killer42
I was looking at your code when I realised what I was doing wrong; I've been assuming that the "If & Then" statements could be put on seperate lines, which dosent work, and then found that if I put everything on one line it worked; having read that it's recommended to keep the lines short, I broke it up with the Underscore and then had a problem with "End If".
Now I know to finish the "If"...Leave a comment:
-
Thanks willakawill, I've grasped it now, I've realised that the "Then" statement has to be on the "If" line; I was putting it on the next line and that was screwing everything else up, unless I used the Underscore; Now its in the right place I'm making sense out of everything you've said....Leave a comment:
-
Wow!!
Ok Thanks Guys, I've embarrassed myself again..oh well
in my defence I picked up the book about 3 days ago and ended up realising its the wrong one (Visual Basic 2005 for Dummies) so that ended up in the bin.
I've been using the Internet for reference, and a very basic knowledge of BBC Basic 25 years ago.
by the way I didn't put the Colon in, I watched as it was added automatically.
Thanks...Leave a comment:
No activity results to display
Show More
Leave a comment: