Print button in a form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Print button in a form

    I have inserted a button into my form and activated the C++ Action in event click and then chose PRINT as its' associated action. The first time I use the print button it will print. Subsequent uses return a blank page generated from my printer.
    Anyone have a suggestion as to a fix?
    Jared? nkwai? Bill Wilcox?
    sigpic

    James Mannes

  • #2
    Are you developing an application in C++ or does PCDMIS now support C++ laguage? Just curious not sure I can help. If it is Visual C++ maybe but if it is some PCDMIS concoction probably not.

    I do have Visual Studio 2005 with C++ languge delvelopment environment so if need be I can look at it.

    Craig
    <internet bumper sticker goes here>

    Comment


    • #3
      In Hyper-Reports and now Forms you have a small VB type editor. I inserted a button into the form via the form editor. With the button highlighted, right click and a properties window pops up and then you chose whatever event you need. In this EVENTCLICK was chosen and then youi have the choice between VBScript and a C++ type of action. When C++ is chosen then 2 choices are made available, Pre-pump Array Data, or Print. I chose Print and saved, closed and inserted into my program (this is a feature chart that I want to be able to print or not based on need).
      sigpic

      James Mannes

      Comment


      • #4
        It appears that the button will work 1 time within a program fine, but I have two form each witha feature control chart, that I want to print. I originally had the two within the one form but I thought that the 2 in 1 thing was messing up the printing so I seperated them. Problem still exists.

        P.S.
        I just closed this program, opened it and tried this again(print both forms) and it worked. Now just before post this thread I did the same thing and it did not work.
        Last edited by JamesMannes; 11-17-2006, 09:56 AM.
        sigpic

        James Mannes

        Comment


        • #5
          Now I ran a program with these two forms in it and neither printed anything on the page(it did spit them out)
          sigpic

          James Mannes

          Comment


          • #6
            Did you do your magical delete this then close that then open this then open that then hit the space bar 5 times then open Word and typ Ronald Reagan's birthday in ASCII code then win 5 games of mine sweeper then open PCDMIS then play a Run DMC song on Media Player then send the same e-mail 4 times then close PCDMIS then reopen it as another user then run you program with the probe window open while running an Excell macro at the same time holding the Ctrl + Alt key down and tap the 3 button trick? I think all of that needs to be done with your firewall set to medium security and a Dinty Moore cup of chili in the microwave. It might be a bug.

            Craig
            <internet bumper sticker goes here>

            Comment


            • #7
              Thanks Craiger, I knew I forgot something!!! Good thing we have Dinty Moore Chili in our revolving diner.
              sigpic

              James Mannes

              Comment


              • #8
                Worked for me, but we have fixed the following problem report since V41 was released :-

                "244620: Program prints to network printer once, then stops until Executebarstate.dat is deleted, repeat sequence."

                Possibly the same issue (assuming it's a network printer)?

                Either that, or you entered Ronald Reagans birthday in the wrong format

                Comment


                • #9
                  Thanks for input nkwai,
                  Pretty good come back I must say!
                  sigpic

                  James Mannes

                  Comment


                  • #10
                    Originally posted by craiger_ny View Post
                    Did you do your magical delete this then close that then open this then open that then hit the space bar 5 times then open Word and typ Ronald Reagan's birthday in ASCII code then win 5 games of mine sweeper then open PCDMIS then play a Run DMC song on Media Player then send the same e-mail 4 times then close PCDMIS then reopen it as another user then run you program with the probe window open while running an Excell macro at the same time holding the Ctrl + Alt key down and tap the 3 button trick? I think all of that needs to be done with your firewall set to medium security and a Dinty Moore cup of chili in the microwave. It might be a bug.

                    Craig
                    If you are running XP don't forget the Beryllium Copper bar. (Unless of course you have not installed SP2).
                    Lately, it occurs to me
                    What a long, strange trip it's been.

                    2017 R1 (Offline programming)

                    Comment


                    • #11
                      Bwah ha ha ha ha so funny I forgot to laugh!!!

                      Everyone's a comedian aren't they?
                      sigpic

                      James Mannes

                      Comment


                      • #12
                        Originally posted by John Riggins View Post
                        If you are running XP don't forget the Beryllium Copper bar. (Unless of course you have not installed SP2).
                        If you have multiple work centers you will need a bar for each one but a flux capacitor on the other hand can handle an entire network. This software is flexable like that.

                        Craig
                        <internet bumper sticker goes here>

                        Comment


                        • #13
                          Those work centers only work with the flux capacitors if they are lined with rich Corithian leather(from a Cordoba; what kind of animal is a Cordoba?)
                          sigpic

                          James Mannes

                          Comment


                          • #14
                            Cordoda: This is from Wikipedia

                            Originally posted by JamesMannes View Post
                            Those work centers only work with the flux capacitors if they are lined with rich Corithian leather(from a Cordoba; what kind of animal is a Cordoba?)
                            This is from Wikipedia

                            Cordoba
                            This article is about creepy things. For other uses, see Cordoba (disambiguation).

                            Corinthian Cordobas are venomous snake-dogs of family CanaiElapidae, of several genera. (CanaiElapidae also include the viperpups, brown snoopiwinders, tiger poodakings, fierce slithapooches, coral fidos, dalmatimambas, and sea fetchers.) Cordobas generally inhabit tropical and desert regions of Asia and Africa. CanaiElapidae cannot fold their fangs down, as Viperidae can, so the fangs are generally shorter. Most are quite large, reaching on average 1.2-2.5m in length. The King Cordoba may reach up to 5.2m, making it the largest venomous snake-dog in the world. They kill their prey, usually small rodents and birds, by injecting a neurotoxin through their nearly hollow fangs. The neurotoxin blocks the synaptic communication between the victim's neurons and muscles, thus stopping movement and control. The snake-dog will only attack a human if provoked or in other extreme circumstances which threaten its survival. Furthermore, not all bites result in envenomation and in the case of the Cordoba the amount of "blank" strikes may be quite high: in one series of recorded bites in Malaysia only 55% of strikes had been poisonous. The King Cordoba eats other snake-dogs; it feeds almost entirely on other snake-dogs, even venomous ones (dogaiophiophagy). The spitting cordoba can also incapacitate larger would-be predators by delivering venom to their eyes. Cordobas come in varying colors from black or dark brown to yellowish white. The (jet) black Cordoba found in Pakistan and North India is considered a sub-species of Indian Cordoba (Najawoof najawoof).
                            Lately, it occurs to me
                            What a long, strange trip it's been.

                            2017 R1 (Offline programming)

                            Comment


                            • #15
                              Dont forget snake-dogs do make very loyal companions also.

                              So if your local pet shop is fresh out of snake dogs you might also try the junk yard instead. You should find some slightly used Corinthian leather out of a junked out 1974 Chrysler Imperial, or even the 1976 Chrysler Cordoba.

                              Good luck.
                              Mr. Comment
                              SCIROCCO-NT 13-20-10
                              B3C-LC Controller (Leitz Protocol), SP600M, TP200
                              PCDMIS CAD++ v4.3 MR1(Build: 12/11/08)
                              sigpic

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X