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$
  • $\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 Nov 2 '12 at 22:09
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$
  • $\begingroup$ +1 For clarifying ShowStringCharacters and showing a straightforward use of TextCell. $\endgroup$ – DavidC Nov 2 '12 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, privacy policy and cookie policy

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