<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Nov 2019 10:46:08 Z</lastBuildDate><pubDate>5 Nov 2019 13:58:02 Z</pubDate><description>Bonjour Chers développeurs&#13;
J'ai conçu un service qui permet d'imprimer un bon automatiquement dès qu'un nouveau enregistrement est fait. Quant je l’exécute ça me donne le résultât auquel je m'attend. Mais quand je l'installe et que je vais dans le services windows pour le démarrer, voici le message que ça m'affiche:&#13;
"***Le service PROJET_IMPRESSION_BON sur ordinateur local a démarré et s'est ensuite arrêté. Certains services s'arrêtent automatiquement s'ils ne sont pas utilisés par d'autres services ou programmes****"&#13;
https://hostimage.windev.io/images/erreurserviceswindevmobile_6dec088139258d84336cf9242123a9b0.png&#13;
Merci de l'aide&#13;
Voici mon code ci-dessous:&#13;
// Résumé : &lt;indiquez ici ce que fait la procédure&gt;&#13;
// Syntaxe :&#13;
// IMPRIME_BON ()&#13;
//&#13;
// Paramètres :&#13;
//	Aucun&#13;
// Valeur de retour :&#13;
// 	Aucune&#13;
//&#13;
// Exemple :&#13;
// Indiquez ici un exemple d'utilisation.&#13;
//&#13;
PROCÉDURE IMPRIME_BON()&#13;
//trouver les ventes non imprimées&#13;
//nVarOdreComde est un entier&#13;
&#13;
HExécuteRequête(REQ_SELECT_VTE_NON_IMPRIM,hRequêteDéfaut)&#13;
HLitPremier(REQ_SELECT_VTE_NON_IMPRIM)&#13;
SI HTrouve(REQ_SELECT_VTE_NON_IMPRIM) ALORS&#13;
	TANTQUE PAS HEnDehors(REQ_SELECT_VTE_NON_IMPRIM)&#13;
		&#13;
		HExécuteRequête(REQ_SELECT_ORDRE_CMDE,hRequêteDéfaut,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl)&#13;
		HLitPremier(REQ_SELECT_ORDRE_CMDE)&#13;
		SI HTrouve(REQ_SELECT_ORDRE_CMDE) ALORS&#13;
			//Bon de commande pour la section concernéd&#13;
			POUR k=1 _À_ gnVarNbreFoisImprimeTickeINI&#13;
				iInitRequêteEtat(ETAT_RECU_PAR_SECTION,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl,REQ_SELECT_ORDRE_CMDE.Serie_DBL,gnVarNumSection)&#13;
				iImprimeEtat(ETAT_RECU_PAR_SECTION)&#13;
			FIN&#13;
			HLitSuivant(REQ_SELECT_ORDRE_CMDE)		&#13;
			TANTQUE PAS HEnDehors(REQ_SELECT_ORDRE_CMDE)&#13;
				SI VarSectionImprimableINI=1 ALORS&#13;
					POUR k=1 _À_ gnVarNbreFoisImprimeTickeINI&#13;
						iInitRequêteEtat(ETAT_RECU_PAR_SECTION,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl,REQ_SELECT_ORDRE_CMDE.Serie_DBL,gnVarNumSection)&#13;
						iImprimeEtat(ETAT_RECU_PAR_SECTION)&#13;
					FIN&#13;
				FIN&#13;
				//Impression note du client&#13;
				iInitRequêteEtat(ETAT_RECU_PAR_SECTION_CLI,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl,REQ_SELECT_ORDRE_CMDE.Serie_DBL)&#13;
				iImprimeEtat(ETAT_RECU_PAR_SECTION_CLI)					&#13;
				&#13;
				//Marquage ligne facture pour imprimle&#13;
				HExécuteRequête(REQ_MARQUE_IMPRIM_LIGNE_FACT,hRequêteDéfaut,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl)&#13;
				&#13;
				HLitSuivant(REQ_SELECT_ORDRE_CMDE)&#13;
			FIN&#13;
		FIN&#13;
		//Marquage facture pour imprime&#13;
		HExécuteRequête(REQ_MARQUE_FACTURE_IMPRIM,hRequêteDéfaut,REQ_SELECT_VTE_NON_IMPRIM.Num_Bl)&#13;
		&#13;
		HLitSuivant(REQ_SELECT_VTE_NON_IMPRIM)&#13;
		&#13;
	FIN&#13;
//sinon&#13;
//	&#13;
FIN</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement/read.awp</link><title>Services Windows s'arrète automatiquement</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>remy.bisson</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234394/read.awp</comments><pubDate>7 Nov 2019 10:46:08 Z</pubDate><description>Bonjour,&#13;
&#13;
Je ne vais pas résoudre le problème, mais voici quelques conseils :&#13;
&#13;
Ne pas se connecter à la BDD dans l'initialis…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234394/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234394/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement/read.awp">Services Windows s'arrète automatiquement</source><title>Re: Services Windows s'arrète automatiquement</title></item><item><author>Mathurin PARKOUDA</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234348/read.awp</comments><pubDate>5 Nov 2019 16:22:34 Z</pubDate><description>Bonjour, merci pour l'aide&#13;
Je ne m'y connait pas en projet Service Windows, c'est une première pour moi.&#13;
Voici mon code d'init…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234348/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234348/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement/read.awp">Services Windows s'arrète automatiquement</source><title>Re: Services Windows s'arrète automatiquement</title></item><item><author>jean.pierre.bloch</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234346/read.awp</comments><pubDate>5 Nov 2019 15:48:11 Z</pubDate><description>Bonjour,&#13;
&#13;
Je dirais que le problème ne vient pas de votre code mais de :&#13;
1. la façon dont le service est installé, en particu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234346/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement-234346/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234334-services-windows-arrete-automatiquement/read.awp">Services Windows s'arrète automatiquement</source><title>Re: Services Windows s'arrète automatiquement</title></item></channel></rss>
