Setting default name when save a file - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Setting default name when save a file Use our Google Custom Search for best site search results. Setting default name when save a file Last post 05-21-2009 09:31 AM by Hilary Stoupa. 7 replies. Page 1 of 1 (8 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-27-2007 08:35 PM thtsps Joined on 08-06-2007 Posts 2 Setting default name when save a file Reply Contact Hi, I'm a new beginner of infopath 2003 for build a form and publish to sharepoint and i have a bit problem that i need to set a name when i click save i see a default form is "Form1" every form . How can i setting this to other name i need to set by myself. Anyone to know about this ? Thank in advance. 08-28-2007 04:51 AM In reply to Agni Jonnalagadda Joined on 12-15-2004 India Posts 617 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact You need to substitute with the correct filename in the below line of code. thisXDocument.UI.SetSaveAsDialogLocation("filename"); Agni / http://www.ggktech.com 05-21-2009 06:42 AM In reply to thiagoarantes Joined on 05-21-2009 Montreal, QC Posts 7 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact Does someone know how can I implement this code using Infopath 2007? My namespace Microsoft.Office.Infopath doesn't have this method. Thanks Cheers,Thiago 05-21-2009 08:35 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,296 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact For C#, this.SetSaveAsDialogFileName("nameHere"); and this.SetSaveAsDialogLocation("locationHere); For VB, you can use Me for this and get rid of the semi-colons.... Hilary Stoupa 05-21-2009 08:50 AM In reply to thiagoarantes Joined on 05-21-2009 Montreal, QC Posts 7 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact Hilary Stoupa:For C#, this.SetSaveAsDialogFileName("nameHere"); and this.SetSaveAsDialogLocation("locationHere);For VB, you can use Me for this and get rid of the semi-colons.... Hi Hilary, I tried this code and got this error: Error 1 'FormCode' does not have a definition for 'SetSaveAsDialogFileName' ...FormCode.cs 35 18Do you have any clue about what can be happening to my code? Thanks Cheers,Thiago Filed under: SetSaveAsDialogFileName 05-21-2009 09:08 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,296 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact What event did you add the line to? In other words, when do you want the form to have the filename set? Hilary Stoupa 05-21-2009 09:22 AM In reply to thiagoarantes Joined on 05-21-2009 Montreal, QC Posts 7 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact I've been trying in FormEvents_Loading event. Should it be in a different place? thanks Cheers,Thiago 05-21-2009 09:31 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,296 Re: Setting default name when save a file Mark as Not AnswerMark as Answer... Reply Contact Ah, this is a browser compatible form, eh? I'm not sure how to do this in a browser form.... Hilary Stoupa Page 1 of 1 (8 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
Hi,
I'm a new beginner of infopath 2003 for build a form and publish to sharepoint and i have a bit problem that i need to set a name when i click save i see a default form is "Form1" every form . How can i setting this to other name i need to set by myself. Anyone to know about this ? Thank in advance.
You need to substitute with the correct filename in the below line of code.
thisXDocument.UI.SetSaveAsDialogLocation(
Does someone know how can I implement this code using Infopath 2007?
My namespace Microsoft.Office.Infopath doesn't have this method.
Thanks
For C#, this.SetSaveAsDialogFileName("nameHere"); and this.SetSaveAsDialogLocation("locationHere);
For VB, you can use Me for this and get rid of the semi-colons....
Hilary Stoupa:For C#, this.SetSaveAsDialogFileName("nameHere"); and this.SetSaveAsDialogLocation("locationHere);For VB, you can use Me for this and get rid of the semi-colons....
Hi Hilary,
I tried this code and got this error:
Error 1 'FormCode' does not have a definition for 'SetSaveAsDialogFileName' ...FormCode.cs 35 18Do you have any clue about what can be happening to my code?
What event did you add the line to? In other words, when do you want the form to have the filename set?
I've been trying in FormEvents_Loading event.
Should it be in a different place?
thanks
Ah, this is a browser compatible form, eh? I'm not sure how to do this in a browser form....