2
$\begingroup$

I wrote a small code and deployed into CDF.

  CDFDeploy[SystemDialogInput["FileSave"], Style["This is my name"],WindowSize -> {100, 100}]

The String(This is my name) shows in double quotes ,whenever we have to open CDF.

enter image description here

How can I remove that double quotes in CDF?

$\endgroup$
1
  • $\begingroup$ I'm puzzled as to why you want to put a naked Style exprssion into a .cdf file. I believe a .cdf should built up from Cell expressions. $\endgroup$
    – m_goldberg
    Commented Nov 2, 2012 at 22:09

2 Answers 2

9
$\begingroup$

Try

CDFDeploy[SystemDialogInput["FileSave"],
 Style["This is my name", ShowStringCharacters->False],WindowSize -> {100, 100}]

or

CDFDeploy[SystemDialogInput["FileSave"],
   TextCell["This is my name"], WindowSize -> {100, 100}]
$\endgroup$
1
  • $\begingroup$ +1 For clarifying ShowStringCharacters and showing a straightforward use of TextCell. $\endgroup$
    – DavidC
    Commented Nov 2, 2012 at 10:12
2
$\begingroup$

An alternative to editing notebook cells is:

CDFDeploy[SystemDialogInput["FileSave"], 
Graphics[Text[Style["This is my name"]]], WindowSize -> {100, 100}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.