I have a winforms app that loads some images and text and saves the compilation as a jpeg. This all works on my pc, but I need this to run on my web server. When I run it on the server while logged in to 开发者_开发技巧remote desktop, it works great, if I run it while not connected, it creates solid black images. In my winforms app, I am loading my content into a panel and then using the drawtoImage function of the panel to export the image. Any ideas on how I could get this to work server side?
OK ,how i understood this is a Desktop Application . If so than you should keep the Session as Logged In ,which will cause trouble ,if you want to log in from another Machine it wont allow you ,or you can use Team Viewer for Remote Access and leave Administrator Account on you're Web Server as Logged In ,i think that will solve you're problem .
OK, the method of creating the control in memory and then using drawtobitmap works great for me, thanks for your input
精彩评论