Prev: A problem using PrintForm
Next: How To Know
From: Steve Ricketts on 21 Dec 2009 15:08 Sounds like a very interesting product. I just took a look at their web site and will play around with it a bit. Thanks for the heads-up on that one. sr "Schmidt" <sss(a)online.de> wrote in message news:eg3e0BngKHA.2160(a)TK2MSFTNGP02.phx.gbl... > > "Steve Ricketts" <velocedge(a)hotmail.com> schrieb im Newsbeitrag > news:uBcc$HlgKHA.6096(a)TK2MSFTNGP02.phx.gbl... > >> Contents are changed each time it's run. >> The bat file builds a rounded corner button .gif with >> transparency with gradient colors based on a start >> and end value. All the sizes and colors will differ as >> well as the type. > > Aside from the "batch-start-problem"... > > If you can live with generated *.png-file content instead > of the *.gifs, you can do that (and much more, as for > example direct *.pdf creation) directly inside your VB- > service-App with the use of a free cairo-wrapper-library. > > Let me know, if I should give you an example for that > (all drawing-routines antialiased, rounded rects, etc... > gradients with different color-stops, transparent overlays... > rotation, text-out, etc - all no larger problem, since > you talk with the cairo-lib over a VB-COM-Object). > > But also GDI+ should work fine for that (in case the > Server-OS is a relative "fresh one", it should be > already preinstalled/available). > > Olaf > >
From: Steve Ricketts on 21 Dec 2009 15:10 That's certainly part of it. I don't really want to tie up the service waiting for the program to create the graphics. This particular service can get pretty busy and did didn't seem like a good idea to have it wait while four graphic files were created. sr "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:u50GtymgKHA.5520(a)TK2MSFTNGP06.phx.gbl... > Steve Ricketts has brought this to us : >> BTW, I can make this work by calling the executables directly in each >> line of the .bat file. But I would really like to know how to run a .bat >> file from a service in case I ever need to do it again. > > It's extremely difficult to envision a scenario where you *need* to call a > batch file from a full-blown programming language. The only one that > comes immediately to mind would be the ease with which you could go async > on the call. Is that the real issue? > > -- > .NET: It's About Trust! > http://vfred.mvps.org > >
From: Karl E. Peterson on 21 Dec 2009 15:17 Steve Ricketts was thinking very hard : > "Karl E. Peterson" <karl(a)exmvps.org> wrote... >> Steve Ricketts has brought this to us : >>> BTW, I can make this work by calling the executables directly in each line >>> of the .bat file. But I would really like to know how to run a .bat file >>> from a service in case I ever need to do it again. >> >> It's extremely difficult to envision a scenario where you *need* to call a >> batch file from a full-blown programming language. The only one that comes >> immediately to mind would be the ease with which you could go async on the >> call. Is that the real issue? > > That's certainly part of it. I don't really want to tie up the service > waiting for the program to create the graphics. This particular service can > get pretty busy and did didn't seem like a good idea to have it wait while > four graphic files were created. Okay, you're starting to make a case for it. <g> -- ..NET: It's About Trust! http://vfred.mvps.org
From: Karl E. Peterson on 21 Dec 2009 15:16 Steve Ricketts formulated on Monday : >>>> I was wondering about that too, do you use a batch file for speed, or >>>> could you replace it with a VB program? >>> >>> Contents are changed each time it's run. >> >> I don't think you answered the question. Or even thought about it. >> >>> The bat file builds a rounded corner button .gif with transparency with >>> gradient colors based on a start and end value. All the sizes and colors >>> will differ as well as the type. >> >> No, the bat file doesn't do that. The bat file executes another program >> that does that. Again, why a bat file? > > Sorry... I thought I did answer. I'll try again. > > Not using the bat for speed, more for flexibility. The batch file is created > by another process as a result of a user changing style information about > their web site. The values change each time it's created and the parameters > are different from user to user. Ahhhhh... It was the part about "another process" that didn't come through before. I thought *your* process was creating the batch file, then shelling out to it. > Like I said in one of the other posts, I > have the program running by executing each individual line within the > service, but I won't always have that luxury. That would've been my first suggestion - that you simply open the batch file up, and execute it line by line yourself. > So, the question is really is > now more about how to run a bat file from a service than this specific > example. I've never diddled with services before, to be honest. Are you unable to run *any* batch file, or just not run this particular one? -- ..NET: It's About Trust! http://vfred.mvps.org
From: Steve Ricketts on 21 Dec 2009 15:40
Can't run any batch file. sr "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:#YF52pngKHA.5564(a)TK2MSFTNGP06.phx.gbl... > Steve Ricketts formulated on Monday : >>>>> I was wondering about that too, do you use a batch file for speed, or >>>>> could you replace it with a VB program? >>>> >>>> Contents are changed each time it's run. >>> >>> I don't think you answered the question. Or even thought about it. >>> >>>> The bat file builds a rounded corner button .gif with transparency with >>>> gradient colors based on a start and end value. All the sizes and >>>> colors will differ as well as the type. >>> >>> No, the bat file doesn't do that. The bat file executes another program >>> that does that. Again, why a bat file? >> >> Sorry... I thought I did answer. I'll try again. >> >> Not using the bat for speed, more for flexibility. The batch file is >> created by another process as a result of a user changing style >> information about their web site. The values change each time it's >> created and the parameters are different from user to user. > > Ahhhhh... It was the part about "another process" that didn't come > through before. I thought *your* process was creating the batch file, > then shelling out to it. > >> Like I said in one of the other posts, I have the program running by >> executing each individual line within the service, but I won't always >> have that luxury. > > That would've been my first suggestion - that you simply open the batch > file up, and execute it line by line yourself. > >> So, the question is really is now more about how to run a bat file from a >> service than this specific example. > > I've never diddled with services before, to be honest. Are you unable to > run *any* batch file, or just not run this particular one? > > -- > .NET: It's About Trust! > http://vfred.mvps.org > > |