Advice required for a wpf window used for survey?

I am developing a wpf desktop application which contains a survey form. Survey form includes bunch of radio buttons. at the end, i want that survey form to be converted in to pdf with the similar layout as in the window of application as shown in the fig:
I want your expert opinion what should be best for me and user in the following options?
I should convert the window to xps or pdf  OR
i should just skip window and make a similar pdf layout that can be filled by user during survey using adobe reader pro and show it to user(In that case, we wont need to convert
anything, it will already be in pdf). OR
I should just take the snapshot of the survey window and then compile it in a pdf form.
Extra:
I have already written all the radio buttons information to a text file. Initially.Initially i thought that user should save the information and then he can read it from a text file but that's unprofessional. I tried to make a flow document but its very hard
to make layout in Flow document. I tried PdfSharp, it was helpful but then there was document in pdfSharp where user will fill a pdf. So i got confused. Any further suggestion on this matter will be appreciated. Thanks

There is no built-in feature that enables you to convert a window or a control to a PDF in .NET nor WPF so you will have to use some third-party tool to be able to this. Note that you should not ask questions about third-party software in these forums though
as they are intended for Microsoft's products and technologies only.
Please refer to the following thread for an example of how you could convert a WPF control, such as for example the root panel (Grid, StackPanel or whatever you are using) to an XPS document:
http://stackoverflow.com/questions/502198/convert-wpf-xaml-control-to-xps-document.
Using the approach mentioned in the link above you could just take "a snapshot" of the panel that contains the radio buttons and save it to an XPS document.
Creating interactive user intefaces as a PDF in Adobe Reader Pro doesn't sound like a good idea and converting an existing PDF into a WPF GUI doesn't either. Then you probably better stick to your window with radio buttons and then convert the result into
an XPS document. Or you could save the content of the Grid, StackPanel or whatever to an image and then use some third-party sofware to generate a PDF file from the image if you necessarily want a PDF output:
http://stackoverflow.com/questions/4560173/save-wpf-view-as-image-preferably-png
http://stackoverflow.com/questions/8881865/saving-a-wpf-canvas-as-an-image
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and then please start a new thread if you have a new question. Please don't post several questions in the same thread and please don't post questions about third-party software in the
MSDN forums.

Similar Messages

  • Advices required for a JAWT implementation for Windows Mobile 5 and 6

    Hi,
    I want to create a jni bridge in order to open a player in a java Frame. This player works fine in a mobile native application.
    I want to know if somebody tried already to create such a bridge keeping in mind that this is for mobile environment. If yes, is there some specific problems which I should be aware of?
    Specifically I have 2 problems.
    1. My jni getHWND method always return 0.
    JNIEXPORT jint JNICALL Java_JavaRMEngineInterface_getHWND
    (JNIEnv *env, jobject obj, jobject component){
         HWND hWnd = 0;
    //try {
    typedef jboolean (JNICALL PJAWT_GETAWT)(JNIEnv, JAWT*);
    JAWT awt;
    JAWT_DrawingSurface* ds;
    JAWT_DrawingSurfaceInfo* dsi;
    JAWT_Win32DrawingSurfaceInfo* dsi_win;
    jboolean result;
    jint lock;
    bstrt jawtPath = "\\Windows"; // Put Path String from jrePath to jawtPath
    //Load AWT Library
    if(!_hAWT)
    //for Java 1.4
    hAWT = LoadLibrary(jawtPath + bstr_t("\\jawt.dll"));
    //if(!_hAWT)
    //for Java 1.3
    //_hAWT = LoadLibrary(jawtPath + bstrt("\\awt.dll"));
    if(_hAWT)
    PJAWT_GETAWT JAWT_GetAWT = (PJAWT_GETAWT)GetProcAddress(_hAWT, L"_JAWT_GetAWT@8");
    if(JAWT_GetAWT)
    awt.version = JAWT_VERSION_1_3; // Init here with JAWT_VERSION_1_3 or JAWT_VERSION_1_4
    //Get AWT API Interface
    result = JAWT_GetAWT(env, &awt);
    if(result != JNI_FALSE)
    ds = awt.GetDrawingSurface(env, component);
    if(ds != NULL)
    lock = ds->Lock(ds);
    if((lock & JAWT_LOCK_ERROR) == 0)
    dsi = ds->GetDrawingSurfaceInfo(ds);
    if(dsi)
    dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
    if(dsi_win)
    hWnd = dsi_win->hwnd;
    ds->FreeDrawingSurfaceInfo(dsi);
    ds->Unlock(ds);
    awt.FreeDrawingSurface(ds);
    return (jint)hWnd;
    //}catch()
    return (jint)hWnd;
    2. this second method throw an "error C2100 illegal indirection" at the last line on g_hwndMain.
    JNIEXPORT jboolean JNICALL Java_JavaRMEngineInterface_construct
    (JNIEnv *env, jobject obj, jlong peer, jint hwnd, jlong top, jlong left, jlong bottom, jlong right, jstring lpszSystemLanguage, jint nCacheSize){
         CRMEngineInterface cpp_obj = (CRMEngineInterface)peer;
         HWND g_hwndMain = (HWND)hwnd;
         HDC hDC = ::GetDC(g_hwndMain);
         SIZE size;
    size.cx = (LONG) right - (LONG) left;
    size.cy = (LONG) bottom - (LONG) top;
         TCHAR sInstallDir[MAX_PATH];
         ::GetModuleFileName(NULL, sInstallDir, MAX_PATH);
         TCHAR* pEndPath = _tcsrchr(sInstallDir, L'\\');
         if (pEndPath != NULL)
              *(pEndPath + 1) = 0;
         TCHAR sContentDir[MAX_PATH];
         memcpy(sContentDir, sInstallDir, MAX_PATH);
         UINT nCacheSizeCPP = (UINT) nCacheSize;
         return *cpp_obj->construct( hDC, g_hwndMain, size, sInstallDir, sContentDir, 0);
    Any advice will be very helpful.

    Hello Brian,
    the client technology is based on web dynpro, but it runs in an own Mobile Client. Therefore you do not need the internet browser for the application.
    During the client development you can use the web dynpro tools to design the layout and the screen flow of your application. In the last step you can deploy the application to your mobile client and run it without a browser.
    The mobile client includes a web dynpro runtime to display the data. Therefore you do not need a J2EE server in order to run an application.
    The mobile occasionally connected scenario provides a api to access the local database. NetWeaver Mobile 7.1 for PDA supports two different databases:
    1. MinDB ( from SAP, included no additionals license fee required )
    2. DB2E
    NetWeaver Mobile includes a complete queing mechanism.
    You can also take a look into two eLearnings which provide a good technical overview:
    Link:  [Architecture and Runtime|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e048e20c-7246-2a10-e8a5-8b2b78b5b994]
    Link: [Development Cycle and Tools|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/204fc387-6646-2a10-99b7-bba030bc3f68]
    Unfortunetly there is no fixed timeline for WM6.But I guess this will be available soon.
    I'm afraid but also don't know of any fixed timeline regarding Adobe Interactive forms.
    The architecture of NetWeaver Mobile 7.1 is pretty new and full of great new functionalites. The User Interface for NetWeaver Mobile 7.1 uses eSWT to render the UI elements.
    Best Regards,
    Stefan

  • Advice required on a select statement using "FOR ALL ENTRIES"

    Hi,
    this is really intresting ...
    I have a small requirement where in i have to find out
    the valid entries in my internal table (T_MATNR) by using a select statement to a check table (MARA) which has all the fields present in the internal table T_MATNR.
    Select statement is
    SELECT MATNR
           MTART
           from MARA
           for all entries in T_MATNR
           into table T_MATNR
           where matnr eq T_MATNR-MATNR.
    If you observe the itab in the option 'FOR ALL ENTRIES' and the destination table is the same. I want to know whether this is correct? will it cause any performance issue? right now this statement is working fine for me.

    Hi,
    U have to use
    SELECT MATNR
    MTART
    from MARA
    <b>into table I_MATNR(different table)</b>
    for all entries in T_MATNR
    where matnr eq T_MATNR-MATNR.
    If u r specifying both same table name then for what entries it will retrieve, if u have alreay selected some entries and appending u can use
    SELECT MATNR
    MTART
    from MARA
    <b>into table T_MATNR</b>where matnr eq T_MATNR-MATNR.
    then
    SELECT MATNR
    MTART
    from MARA
    <b>appending table T_MATNR</b>
    for all entries in T_MATNR
    where matnr eq T_MATNR-MATNR.
    In this way u can do.
    Hope u got it.

  • Conceptual advice required for file receiver scenario

    Hi,
    My scenario is to read 3 sets of data from SAP ERP and write files on the receiver system, one per data set.
    I could create 3 service interfaces and set up Integration Builder configuration for each one but this seems messy.
    Alternatively, if I create one service interface with 3 operations to group them, it is not possible to create the required files unless I add mapping and use dynamic configuration to determine the filename from the payload and set this in the receiver communication channel.
    It seems to me that I would have benefited from the ability to define a rule in the receiver determination to define a different communication channel per operation where the specific filename could be specified.
    It is only possible to bind a service interface to one communication channel in the receiver agreement.
    What would you recommend as the cleanest and best approach to meet this requirement - 1 or 3 service interfaces, use of mapping or are there any alternatives?
    Thanks in advance.
    Alan
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM

    Basically your requirement is many to many mapping.  Please decide based on the sender system requirement. If your sender system sends different message structure then you can break into three diff interfaces and keep the interface simple.
    You can route to three diff recievers based on the condition setting in the receiver determination or you can do in the mapping too. That is not the whole point. you need to think about how do pick the three different interfaces.  You might also consider using ccbpm for this. 
    Refer the pattern that comes in the PI standard installation under SAP BASIS  SWCV.
    BPMPatternSerializeMultipleTrigger or BPMPatternSerializeOneTrigger

  • Payment advice required for 3 items

    Hello,
    At the moment, a payment advice is created for a vendor if >10 items will be paid.
    Is it possible to create a payment advice when >3 items will be paid?
    Thank you.
    Kind regards,
    Linda

    You can set this in customing,
    TC F110 menu path Enviroment / Maintain config
    Pmnt method in company code.
    Select you payment method
    go to the part Pyt adv ctrl.
    I think you have only to change 10 to 3
    This is customizing yoy have to change this in development and transport to the other systems

  • Advice required for dealing with a DC that has exceeded the tombstone lifetime (ID 2042)

    I have a server (2003 R2 Standard) that appears to have had replication issues and is beyond the tombstone lifetime. The Primary DC holds all FSMO roles (Server 2008 R2 Standard) and this is the only other DC on the domain and this is on a single site.
    We are experiencing various problems on the domain over the last few days. (Users receive "The trust relationship between this workstation and primary domain failed." general logon problems on other pc's and member servers, Event ID 4)
    The 2003 DC is due to be demoted but I want to clean up the situation and need some assistance in going down the correct route.
    I think I should plan to
    repadmin /removelingeringobjects
    demote the server once the replication is functioning again.
    Is a valid option to just force demote the 2003 DC then clean up the metadata? I ask as I plan to demote that server anyway but Microsoft documentation seems to suggest this is a last resort.
    I tried to run the repadmin with the /advisory_mode switch but this failed with "Can't retrieve message string" errors but this may be down to my incorrect command use.
    Thanks in advance for any assistance.
    Techie247

    And that is a very real fly in the "metadata cleanup" ointment.  This means we're looking at a strategy of:
    1.) Fix any lingering objects.
    Either continue to hammer at that repadmin syntax or try using the repldiag tool.  Here are some helpful links.
    http://blogs.technet.com/b/robertbo/archive/2010/11/07/cleaning-lingering-objects-across-the-forest-with-repldiag-exe-part-2-of-4.aspx
    http://blogs.technet.com/b/glennl/archive/2007/07/26/clean-that-active-directory-forest-of-lingering-objects.aspx
    2.) Re-enable replication by setting the infamous registry value.
    http://technet.microsoft.com/en-us/library/cc757610(v=ws.10).aspx
    Here's a KB that covers the full process as well -
    http://support.microsoft.com/kb/2020053
    Obviously the key for you will to get past that lingering objects piece. Hopefully you can get that going with either repadmin or repldiag.  Good luck! 

  • Advice Required on whether I should use RBS

    Scenario:
    Current Production SharePoint Farm (WSS3.0) has a Content DB size of 37,028 MB and contains 109796 documents. I calculate the average size of the documents to be 0.34 MB in size.
    I want to install a new SharePoint Farm (SPF2010) and a previous decision was made to implement RBS using the Local FILESTREAM provider. However, upon reading through the TechNet documentation, I have my doubts whether the previous decision was correct.
    Disk Space isn't an issue as the SQL Server is currently running at 40% disk capacity and has 1.86 TB Free. I have been advised that my pre-decessor made the decision to use RBS, was based on the expected performance gains, but from what I understand, these
    are only seen if the average size of your documents exceed 1 MB.
    I am just after some 2nd opinions....
    I have also seen the following article, which suggests that SQL FILESTREAM RBS shouldn't be used in a Production environment:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/a58d84e4-7bf9-4932-b7f6-19b0ebc75a47/should-filestream-rbs-provider-be-used-in-sharepoint-2010-production?forum=sharepointadminprevious
    Kevin Evans

    The built in RBS provider isn't the greatest, i haven't tried using it in anger but the verdict amongst those i trust is that if you're going to be using enough content to merit it then spend the extra to get a better performing 3rd party solution.
    A content database of 37GB isn't worth the added support costs and headaches of RBS (configuration, risk, backup and recovery). You'd set it up to only externalise content over 1MB so from that respect you'd probably see a net gain, however that gain isn't
    going to be huge, it really comes into its own in large document repository scenarios.
    With content that small you'd see far more improvement ripping out the storage array and moving to mirrored SSDs instead (assuming DAS is an option). Other options would be to shell out on more RAM so that SQL can keep more of it's data in the cache.

  • Unable to install itunes 10,5.I receive this message: there is a problem with this window installer package. A program required for nthis install to complete could not run. Contact your support personnel or package vendor.Am using window ultimate 64 bits

    I am unable to install itunes 10,5. I receive this message: There is a problem with this window installer package. A program required for this install to complete could not run. Contact your support personnel or package vendor. I am using window 7 ultimate 64 bits

    There is a problem with the Window installer package. A program required for this intall to complete could not be run. Contact your support personnel or package venfor.
    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Got the following message when trying to install Photoshop CC "You are running an operating system that Photoshop no longer supports. Refer to the system requirements for a full list of supported platforms." I use Windows Vista so not sure what I need to

    Hi there
    I got the following message when trying to install Photoshop CC, "You are running an operating system that Photoshop no longer supports. Refer to the system requirements for a full list of supported platforms."
    I use Windows Vista so not sure what I need to do now! Any help would be much appreciated thanks.

    Photoshop CC only runs on Windows 7 or Windows 8/8.1. Not Vista.
    System requirements | Photoshop

  • Which Edition of Windows is required for using SQL 2012 Always On Availability Groups

    I want to use the new feature of having 2 secondary mirror replicas. the first secondary replica will be sync the second one will be async.
    Currently I have SQL Enterprise license and Windows 2008 R2 Standard license.
    Will I be required to upgrade to Windows Enterprise license to use Always On? (since this feature depends on Windows clustering?)
    Can you please confirm if SQL Always On feature can be used on Windows 2008 R2 standard or not?
    MSDNStudent Knows not much!

    Always On is available with Standard Edition but it supports only 2 nodes. 
    AlwaysOn is a bigger umbrella which covers two features. AlwaysOn Availability Groups (AG) and AlwaysOn Failover Cluster Instance (FCI).
    FCI for 2 node is supported. You can't use AG feature in SQL Server Standard Edition
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • I keep having the message the software required for communicating with your ipad is not installed correctly please reinstall, I've uninstalled and reinstalled the latest version of itunes 8 times and no luck does anyone have any advice?

    I keep having the message the software required for communicating with your ipad is not installed correctly please reinstall, I've uninstalled and reinstalled the latest version of itunes 8 times and no luck does anyone have any advice?

    First, for the forum view issue. Go to My Settings (on the right) and in General Settings change the Topic Page View to Flat. Click Save. Posts should show up in the order they were written.
    Have you seen this?
    http://docs.info.apple.com/article.html?artnum=93764
    Also, since you said that you've gone through the 5 Rs, I would assume that you used the iPod Updater to restore (since there is no other way of doing it and you don't "run" the 5 Rs).
    When you restored, did you use the latest updater?
    You may also want to try formatting the iPod through Windows. Connect it to the computer and when it appears in My Computer right click it and go to format. Does anything happen? Can you format the iPod through Windows?
    btabz

  • I am trying to install iTunes on my PC, but I get this error: "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor." Help!

    I am trying to install iTunes on my PC (using Windows 8.1), but I get this error: "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor." The iTunes file (64-bit) I am trying to install, is named "iTunes64Setup.exe". What seems to be the problem? Help!

    Hey madnest,
    Thanks for the question. After reviewing your post, it sounds like you are having difficulty installing iTunes in Windows. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    Issues installing iTunes or QuickTime for Windows
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Error message on window 7 for install iTune and iCloud!!!"There is a problem with this Windows installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."

    Hi,
    I just try to install the setup download from apple website for iTune and iCloud.
    During the installation, there was error message prompt out "There is a problem with this Windows installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."
    I am using Window 7 32 bit. I have try several time for install, but the result is getting same error message.
    Anyone can help on this??????
    Thanks.
    Justin

    I have also tried extracting the individual components to the temp file and attempting to install them individually despite being unable to remove the previous install of Apple Software Updater.  The outcome, both Apple Software Updater and itunes encountered the same error message during the install process.

  • Windows 64Bit Itunes Error : "THERE IS A PROBLEM WITH THE WINDOWS INSTALLER PACKAGE. A PROGRAM REQUIRED FOR THIS INSTALL TO COMPLETE COULD NOT BE RUN CONTACT YOUR SUPPORT PERSONNEL OR PACKAGE VENDOR."

    I have a brand new HP laptop windows 64bit that is having issues installing Itunes 10.6.3. Whenever attempting to install, I get the error message : "THERE IS A PROBLEM WITH THE WINDOWS INSTALLER PACKAGE. A PROGRAM REQUIRED FOR THIS INSTALL TO COMPLETE COULD NOT BE RUN CONTACT YOUR SUPPORT PERSONNEL OR PACKAGE VENDOR." I thought this was an issue with the new version, and attempted to retrieve/install older versions of Itunes and same issue occurs. I have tried other forums and resolution tips from : https://discussions.apple.com/docs/DOC-3551 and nothing still. It appears that apple installs bonjour and nothing else. I have tried extracting the itunes package and installing the executables seperately, but everytime the error stil arises. I cannot repair the apple software update as it cannot install from the error mentioned above. Looking through the logs, it shows error : 1721, problem with windows installer package.Does anyone have any suggestions on what to try?

    There are so many different error and problems peopl are having.
    This is a link to mine
    https://discussions.apple.com/thread/3467825
    I think it has to be something on Apples end.
    Hopefully they fix it soon. Ive used a few GB redownloading and Im going crazy
    hope this settles you a bit

  • Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code

    I get this message when I check the Device manager for my Ipod
    Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)
    How do I resolve this I have reinstalled iTunes but it still doesn't recognise my ipod

    I reinstalled Itunes a couple of times.  I unistalled all programs that I never use, I updated all of my drivers, Windows swept my computer and found no problems.  I have a yellow causion lite when I look at the USB-port with the phone connected.  All other devices work without a problem.

Maybe you are looking for